File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ via Composer:
2222
2323 Next, create an ``index.php `` file that defines the kernel class and executes it::
2424
25+ // index.php
2526 use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait;
2627 use Symfony\Component\Config\Loader\LoaderInterface;
2728 use Symfony\Component\DependencyInjection\ContainerBuilder;
Original file line number Diff line number Diff line change @@ -545,6 +545,8 @@ allows fetching both public and all non-removed private services::
545545
546546 // gives access to the same services used in your test, unless you're using
547547 // $client->insulate() or using real HTTP requests to test your application
548+ // don't forget to call self::bootKernel() before, otherwise, the container
549+ // will be empty
548550 $container = self::$container;
549551
550552For a list of services available in your application, use the ``debug:container ``
You can’t perform that action at this time.
0 commit comments