diff --git a/recipes/symfony/framework-bundle/src/Kernel.php b/recipes/symfony/framework-bundle/src/Kernel.php index da939589..c3cc8be9 100644 --- a/recipes/symfony/framework-bundle/src/Kernel.php +++ b/recipes/symfony/framework-bundle/src/Kernel.php @@ -59,7 +59,9 @@ class Kernel extends BaseKernel protected function configureRoutes(RouteCollectionBuilder $routes) { $confDir = dirname($this->getRootDir()).'/etc'; - $routes->import($confDir.'/routing/*'.self::CONFIG_EXTS, '/', 'glob'); + if (is_dir($confDir.'/routing/')) { + $routes->import($confDir.'/routing/*'.self::CONFIG_EXTS, '/', 'glob'); + } if (is_dir($confDir.'/routing/'.$this->getEnvironment())) { $routes->import($confDir.'/routing/'.$this->getEnvironment().'/**/*'.self::CONFIG_EXTS, '/', 'glob'); }