8000 [#12722] Added filename comment to avoid confusion · symfony/symfony-docs@f3fd946 · GitHub
[go: up one dir, main page]

Skip to content

Commit f3fd946

Browse files
committed
[#12722] Added filename comment to avoid confusion
1 parent b96feb6 commit f3fd946

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

configuration/micro_kernel_trait.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ via Composer:
2323
2424
Next, create an ``index.php`` file that creates a kernel class and executes it::
2525

26+
// index.php
2627
use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait;
2728
use Symfony\Component\Config\Loader\LoaderInterface;
2829
use Symfony\Component\DependencyInjection\ContainerBuilder;
@@ -32,7 +33,7 @@ Next, create an ``index.php`` file that creates a kernel class and executes it::
3233
use Symfony\Component\Routing\RouteCollectionBuilder;
3334

3435
// require Composer's autoloader
35-
require dirname(__DIR__).'/vendor/autoload.php';
36+
require __DIR__.'/vendor/autoload.php';
3637

3738
class AppKernel extends Kernel
3839
{

0 commit comments

Comments
 (0)
0