File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -262,7 +262,7 @@ the container is stored in ``self::$container``::
262
262
self::bootKernel();
263
263
264
264
// (2) use self::$container to access the service container
265
- $container = self::$container ;
265
+ $container = static::getContainer() ;
266
266
267
267
// (3) run some service & test the result
268
268
$newsletterGenerator = $container->get(NewsletterGenerator::class);
@@ -272,7 +272,7 @@ the container is stored in ``self::$container``::
272
272
}
273
273
}
274
274
275
- The container in ``self::$container `` is actually a special test container.
275
+ The container in ``static::getContainer() `` is actually a special test container.
276
276
It gives you access to both the public services and the non-removed
277
277
:ref: `private services <container-public >` services.
278
278
You can’t perform that action at this time.
0 commit comments