* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\DependencyInjection\Loader\Configurator; use Symfony\Bundle\WebProfilerBundle\EventListener\WebDebugToolbarListener; return static function (ContainerConfigurator $container) { $container->services() ->set('web_profiler.debug_toolbar', WebDebugToolbarListener::class) ->args([ service('twig'), param('web_profiler.debug_toolbar.intercept_redirects'), param('web_profiler.debug_toolbar.mode'), service('router')->ignoreOnInvalid(), abstract_arg('paths that should be excluded from the AJAX requests shown in the toolbar'), service('web_profiler.csp.handler'), ]) ->tag('kernel.event_subscriber') ; };