<?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.php')
        ->prefix('/_wdt');
        $routingConfigurator->import('@WebProfilerBundle/Resources/config/routing/profiler.php')
        ->prefix('/_profiler');
    }
};
