Skip to content

Commit 5412d5e

Browse files
committed
refacto(DX): merge dummy kernel with boot function
1 parent 4dee010 commit 5412d5e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
<?php
22

3-
use App\Kernel;
3+
use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait;
4+
use Symfony\Component\HttpKernel\Kernel as BaseKernel;
45

56
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
67

78
return function (array $context) {
8-
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
9+
return new class($context['APP_ENV'], (bool) $context['APP_DEBUG']) extends BaseKernel {
10+
use MicroKernelTrait;
11+
};
912
};

symfony/framework-bundle/7.4/src/Kernel.php

Whitespace-only changes.

0 commit comments

Comments
 (0)