Skip to content

Commit

Permalink
Fix mistake "Auto Wiring" documentation
Browse files Browse the repository at this point in the history
Update "Auto Wiring" documentation to reflect removal of `cacheResolutions` method in `ReflectionContainer`
  • Loading branch information
craig-mcmahon authored Oct 28, 2021
1 parent 0eb1b34 commit d57b40d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/4.x/auto-wiring.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ $container = new League\Container\Container();

// register the reflection container as a delegate to enable auto wiring
$container->delegate(
(new League\Container\ReflectionContainer())->cacheResolutions()
new League\Container\ReflectionContainer(true)
);

$fooOne = $container->get(Acme\Foo::class);
Expand Down

0 comments on commit d57b40d

Please sign in to comment.