SublimePHPIntel
SublimePHPIntel copied to clipboard
Resolve classes instantiated inside a construct
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