Skip to content

Resolve classes instantiated inside a construct #19

@joao-pedro-alves

Description

@joao-pedro-alves

I'd like to know if there is any way to resolve classes which were instantiated inside a __construct. It is very commom in frameworks that use Dependency Injection.

Example:

namespace App\Http\Controllers;

use App\Repositories\VideosRepository;

class VideoController extends Controller
{
    public function __construct(VideosRepository $videosRepo)
    {
        $this->videosRepo = $videosRepo;
	}
}

In this case, if a create a new method inside this classe and type $this->videosRepo-> i'd like to be shown the methods of the class VideosRepository.

Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions