collection-crud/src/Kernel.php

38 lines
1.2 KiB
PHP
Raw Normal View History

2018-07-18 11:35:27 -04:00
<?php declare(strict_types=1);
2017-11-30 15:06:13 -05:00
2020-06-02 16:08:08 -04:00
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace App;
2017-11-30 15:06:13 -05:00
use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait;
2020-06-02 16:08:08 -04:00
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
2017-11-30 15:06:13 -05:00
use Symfony\Component\HttpKernel\Kernel as BaseKernel;
2020-06-02 16:08:08 -04:00
use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator;
2017-11-30 15:06:13 -05:00
class Kernel extends BaseKernel
{
2020-06-02 16:08:08 -04:00
use MicroKernelTrait;
protected function configureContainer(ContainerConfigurator $container): void
{
$container->import('../config/{packages}/*.yaml');
$container->import('../config/{packages}/'.$this->environment.'/*.yaml');
$container->import('../config/{services}.yaml');
$container->import('../config/{services}_'.$this->environment.'.yaml');
}
protected function configureRoutes(RoutingConfigurator $routes): void
{
$routes->import('../config/{routes}/'.$this->environment.'/*.yaml');
$routes->import('../config/{routes}/*.yaml');
$routes->import('../config/{routes}.yaml');
}
2017-11-30 15:06:13 -05:00
}