diff --git a/docs/4.x/auto-wiring.md b/docs/4.x/auto-wiring.md index 42c61bf..2acb04f 100644 --- a/docs/4.x/auto-wiring.md +++ b/docs/4.x/auto-wiring.md @@ -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);