17 lines
511 B
PHP
17 lines
511 B
PHP
|
<?php
|
||
|
|
||
|
declare(strict_types=1);
|
||
|
|
||
|
use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator;
|
||
|
|
||
|
return static function (RoutingConfigurator $routingConfigurator): void {
|
||
|
if ($routingConfigurator->env() === 'dev') {
|
||
|
$routingConfigurator->import('@WebProfilerBundle/Resources/config/routing/wdt.xml')
|
||
|
->prefix('/_wdt')
|
||
|
;
|
||
|
$routingConfigurator->import('@WebProfilerBundle/Resources/config/routing/profiler.xml')
|
||
|
->prefix('/_profiler')
|
||
|
;
|
||
|
}
|
||
|
};
|