-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Closed
Labels
Description
Symfony version(s) affected
6.0.2
Description
After installing Symfony like explained at https://symfony.com/doc/current/setup.html#creating-symfony-applications
composer create-project symfony/skeleton my_project_directory
... my Kernel.php
looked like this:
class Kernel extends BaseKernel
{
use MicroKernelTrait;
}
But my framework.yaml/.php
was completely ignored, and I had to include this (copied from a previous Symfony project):
private function configureContainer(ContainerConfigurator $container): void
{
$container->import('../config/{packages}/*.yaml');
$container->import('../config/{packages}/'.$this->environment.'/*.yaml');
$container->import('../config/{packages}/*.php');
$container->import('../config/{packages}/'.$this->environment.'/*.php');
if (is_file(\dirname(__DIR__).'/config/services.yaml')) {
$container->import('../config/services.yaml');
$container->import('../config/{services}_'.$this->environment.'.yaml');
} elseif (is_file($path = \dirname(__DIR__).'/config/services.php')) {
(require $path)($container->withPath($path), $this);
}
}
Is this the expected behavior?
How to reproduce
See above.
Possible Solution
No response
Additional Context
No response