Actualizar rutas en el Kernel
Cragser opened this issue · comments
Sergio Reyes commented
Actualmente no se puede usar el profiler de symfony. Pero si actualizamos de
$confDir = $this->getProjectDir() . '/config'; $routes->import($confDir . '/{routes}/*' . self::CONFIG_EXTS, 'glob');
Y ahora utilizamos
`
$routes->import('../config/{routes}/'.$this->environment.'/.yaml');
$routes->import('../config/{routes}/.yaml');
if (is_file(\dirname(__DIR__).'/config/routes.yaml')) {
$routes->import('../config/routes.yaml');
} elseif (is_file($path = \dirname(__DIR__).'/config/routes.php')) {
(require $path)($routes->withPath($path), $this);
}
`