Skip to content

Commit 067c6ec

Browse files
committed
bug #667 Updated the kernel to the latest Symfony Flex recipe changes (javiereguiluz)
This PR was merged into the master branch. Discussion ---------- Updated the kernel to the latest Symfony Flex recipe changes This fixes #635 and updates the kernel according to https://github.com/symfony/recipes/blob/master/symfony/framework-bundle/3.3/src/Kernel.php Commits ------- 0b833e3 Updated the kernel to the latest Symfony Flex recipe changes
2 parents f01e378 + 0b833e3 commit 067c6ec

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/Kernel.php

+5-7
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@
1818
use Symfony\Component\HttpKernel\Kernel as BaseKernel;
1919
use Symfony\Component\Routing\RouteCollectionBuilder;
2020

21-
/**
22-
* @author Fabien Potencier <[email protected]>
23-
*/
24-
final class Kernel extends BaseKernel
21+
class Kernel extends BaseKernel
2522
{
2623
use MicroKernelTrait;
2724

@@ -55,7 +52,7 @@ public function getLogDir(): string
5552
return dirname(__DIR__).'/var/log';
5653
}
5754

58-
public function registerBundles(): iterable
55+
public function registerBundles()
5956
{
6057
$contents = require dirname(__DIR__).'/config/bundles.php';
6158
foreach ($contents as $class => $envs) {
@@ -65,17 +62,18 @@ public function registerBundles(): iterable
6562
}
6663
}
6764

68-
protected function configureContainer(ContainerBuilder $container, LoaderInterface $loader): void
65+
protected function configureContainer(ContainerBuilder $container, LoaderInterface $loader)
6966
{
7067
$confDir = dirname(__DIR__).'/config';
7168
$loader->load($confDir.'/packages/*'.self::CONFIG_EXTS, 'glob');
7269
if (is_dir($confDir.'/packages/'.$this->environment)) {
7370
$loader->load($confDir.'/packages/'.$this->environment.'/**/*'.self::CONFIG_EXTS, 'glob');
7471
}
7572
$loader->load($confDir.'/services'.self::CONFIG_EXTS, 'glob');
73+
$loader->load($confDir.'/services_'.$this->environment.self::CONFIG_EXTS, 'glob');
7674
}
7775

78-
protected function configureRoutes(RouteCollectionBuilder $routes): void
76+
protected function configureRoutes(RouteCollectionBuilder $routes)
7977
{
8078
$confDir = dirname(__DIR__).'/config';
8179
if (is_dir($confDir.'/routes/')) {

0 commit comments

Comments
 (0)