* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\Config\Loader\LoaderInterface; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; use Symfony\Component\HttpKernel\Kernel as BaseKernel; use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator; class Kernel extends BaseKernel { use MicroKernelTrait; protected function configureContainer( ContainerConfigurator $container, LoaderInterface $loader, ContainerBuilder $builder ): void { $configDir = $this->getConfigDir(); $container->import('../config/{packages}/*.yaml'); $container->import('../config/{packages}/' . $this->environment . '/*.yaml'); $container->import('../config/{packages}/*.php'); $container->import('../config/{packages}/' . $this->environment . '/*.php'); $container->import('../config/{services}.php'); $container->import('../config/{services}_' . $this->environment . '.php'); } protected function configureRoutes(RoutingConfigurator $routes): void { $routes->import('../config/{routes}/' . $this->environment . '/*.php'); $routes->import('../config/{routes}/*.php'); $routes->import('../config/{routes}.php'); } }