]> Raphaƫl G. Git Repositories - airlibre/blobdiff - src/Kernel.php
Add google api client
[airlibre] / src / Kernel.php
index 03debcac18b49b67ad0d6191bc6bf602da625148..779cd1f2b12e0d30731787539ba67645b73ef796 100644 (file)
@@ -3,40 +3,9 @@
 namespace App;
 
 use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait;
-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): void
-    {
-        $projectDir = $this->getProjectDir();
-
-        $container->import($projectDir.'/config/{packages}/*.yaml');
-        $container->import($projectDir.'/config/{packages}/'.$this->environment.'/*.yaml');
-
-        if (is_file($projectDir.'/config/services.yaml')) {
-            $container->import($projectDir.'/config/services.yaml');
-            $container->import($projectDir.'/config/{services}_'.$this->environment.'.yaml');
-        } else {
-            $container->import($projectDir.'/config/{services}.php');
-        }
-    }
-
-    protected function configureRoutes(RoutingConfigurator $routes): void
-    {
-        $projectDir = $this->getProjectDir();
-
-        $routes->import($projectDir.'/config/{routes}/'.$this->environment.'/*.yaml');
-        $routes->import($projectDir.'/config/{routes}/*.yaml');
-
-        if (is_file($projectDir.'/config/routes.yaml')) {
-            $routes->import($projectDir.'/config/routes.yaml');
-        } else {
-            $routes->import($projectDir.'/config/{routes}.php');
-        }
-    }
 }