Skip to content

Commit

Permalink
Add more methods able to resolve container instances (#996)
Browse files Browse the repository at this point in the history
Some years ago the Laravel container was made PSR compliant and this
attributes to the fact that `->get()` is a valid resolve call too.
  • Loading branch information
mfn authored Jul 21, 2020
1 parent e8044dc commit 1b5881c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Console/MetaCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,15 @@ class MetaCommand extends Command
protected $methods = [
'new \Illuminate\Contracts\Container\Container',
'\Illuminate\Container\Container::makeWith(0)',
'\Illuminate\Contracts\Container\Container::get(0)',
'\Illuminate\Contracts\Container\Container::make(0)',
'\Illuminate\Contracts\Container\Container::makeWith(0)',
'\App::get(0)',
'\App::make(0)',
'\App::makeWith(0)',
'\app(0)',
'\resolve(0)',
'\Psr\Container\ContainerInterface::get',
];

/**
Expand Down

0 comments on commit 1b5881c

Please sign in to comment.