Skip to content

Commit

Permalink
Merge pull request #235 from craig-mcmahon/docs/auto-wiring-cache
Browse files Browse the repository at this point in the history
Fix mistake in "Auto Wiring" documentation
  • Loading branch information
philipobenito committed Nov 16, 2021
2 parents 5d9771b + d57b40d commit dc19473
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/4.x/auto-wiring.md
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 dc19473

Please sign in to comment.