php-ddd-example icon indicating copy to clipboard operation
php-ddd-example copied to clipboard

Actualizar rutas en el Kernel

Open Cragser opened this issue 4 years ago • 0 comments

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);
    }

`

Cragser avatar Apr 29 '21 06:04 Cragser