mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-18 01:57:13 +00:00
Add more methods able to resolve container instances (#996)
Some years ago the Laravel container was made PSR compliant and this attributes to the fact that `->get()` is a valid resolve call too.
This commit is contained in:
@@ -50,12 +50,15 @@ class MetaCommand extends Command
|
|||||||
protected $methods = [
|
protected $methods = [
|
||||||
'new \Illuminate\Contracts\Container\Container',
|
'new \Illuminate\Contracts\Container\Container',
|
||||||
'\Illuminate\Container\Container::makeWith(0)',
|
'\Illuminate\Container\Container::makeWith(0)',
|
||||||
|
'\Illuminate\Contracts\Container\Container::get(0)',
|
||||||
'\Illuminate\Contracts\Container\Container::make(0)',
|
'\Illuminate\Contracts\Container\Container::make(0)',
|
||||||
'\Illuminate\Contracts\Container\Container::makeWith(0)',
|
'\Illuminate\Contracts\Container\Container::makeWith(0)',
|
||||||
|
'\App::get(0)',
|
||||||
'\App::make(0)',
|
'\App::make(0)',
|
||||||
'\App::makeWith(0)',
|
'\App::makeWith(0)',
|
||||||
'\app(0)',
|
'\app(0)',
|
||||||
'\resolve(0)',
|
'\resolve(0)',
|
||||||
|
'\Psr\Container\ContainerInterface::get',
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user