From d57b40d6d44e5dcb6fbaa6a3e183a9ef781720d1 Mon Sep 17 00:00:00 2001 From: Craig McMahon Date: Thu, 28 Oct 2021 16:48:31 +0100 Subject: [PATCH] Fix mistake "Auto Wiring" documentation Update "Auto Wiring" documentation to reflect removal of `cacheResolutions` method in `ReflectionContainer` --- docs/4.x/auto-wiring.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);