privates['console.command.router_debug'] = $instance = new \Symfony\Bundle\FrameworkBundle\Command\RouterDebugCommand(($container->services['router'] ?? $container->getRouterService()), ($container->privates['debug.file_link_formatter'] ?? $container->getDebug_FileLinkFormatterService())); $instance->setName('debug:router'); $instance->setDescription('Display current routes for an application'); return $instance; } }