CodelyTV / php-ddd-example

🐘🎯 Hexagonal Architecture + DDD + CQRS in PHP using Symfony 6

Home Page:https://pro.codely.tv/library/ddd-en-php

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Actualizar rutas en el Kernel

Cragser opened this issue · 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);
    }

`