original_string: public function load(array $configs, ContainerBuilder $container)
      {
          $configuration = $this->getConfiguration($configs, $container);
          $config = $this->processConfiguration($configuration, $configs);
  
          $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
          $loader->load('profiler.xml');
  
          if ($config['toolbar'] || $config['intercept_redirects']) {
              $loader->load('toolbar.xml');
              $container->getDefinition('web_profiler.debug_toolbar')->replaceArgument(4, $config['excluded_ajax_paths']);
              $container->setParameter('web_profiler.debug_toolbar.intercept_redirects', $config['intercept_redirects']);
              $container->setParameter('web_profiler.debug_toolbar.mode', $config['toolbar'] ? WebDebugToolbarListener::ENABLED : WebDebugToolbarListener::DISABLED);
          }
  
          if (Kernel::VERSION_ID >= 40008 || (Kernel::VERSION_ID >= 30408 && Kernel::VERSION_ID < 40000)) {
              $container->getDefinition('debug.file_link_formatter')
                  ->replaceArgument(3, new ServiceClosureArgument(new Reference('debug.file_link_formatter.url_format')));
          }
      }
code: public function load(array $configs, ContainerBuilder $container)
      {
          $configuration = $this->getConfiguration($configs, $container);
          $config = $this->processConfiguration($configuration, $configs);
  
          $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
          $loader->load('profiler.xml');
  
          if ($config['toolbar'] || $config['intercept_redirects']) {
              $loader->load('toolbar.xml');
              $container->getDefinition('web_profiler.debug_toolbar')->replaceArgument(4, $config['excluded_ajax_paths']);
              $container->setParameter('web_profiler.debug_toolbar.intercept_redirects', $config['intercept_redirects']);
              $container->setParameter('web_profiler.debug_toolbar.mode', $config['toolbar'] ? WebDebugToolbarListener::ENABLED : WebDebugToolbarListener::DISABLED);
          }
  
          if (Kernel::VERSION_ID >= 40008 || (Kernel::VERSION_ID >= 30408 && Kernel::VERSION_ID < 40000)) {
              $container->getDefinition('debug.file_link_formatter')
                  ->replaceArgument(3, new ServiceClosureArgument(new Reference('debug.file_link_formatter.url_format')));
          }
      }
code_tokens: public function load ( array $ configs , ContainerBuilder $ container ) { $ configuration = $ this -> getConfiguration ( $ configs , $ container ) ; $ config = $ this -> processConfiguration ( $ configuration , $ configs ) ; $ loader = new XmlFileLoader ( $ container , new FileLocator ( __DIR__ . '/../Resources/config' ) ) ; $ loader -> load ( 'profiler.xml' ) ; if ( $ config [ 'toolbar' ] || $ config [ 'intercept_redirects' ] ) { $ loader -> load ( 'toolbar.xml' ) ; $ container -> getDefinition ( 'web_profiler.debug_toolbar' ) -> replaceArgument ( 4 , $ config [ 'excluded_ajax_paths' ] ) ; $ container -> setParameter ( 'web_profiler.debug_toolbar.intercept_redirects' , $ config [ 'intercept_redirects' ] ) ; $ container -> setParameter ( 'web_profiler.debug_toolbar.mode' , $ config [ 'toolbar' ] ? WebDebugToolbarListener :: ENABLED : WebDebugToolbarListener :: DISABLED ) ; } if ( Kernel :: VERSION_ID >= 40008 || ( Kernel :: VERSION_ID >= 30408 && Kernel :: VERSION_ID < 40000 ) ) { $ container -> getDefinition ( 'debug.file_link_formatter' ) -> replaceArgument ( 3 , new ServiceClosureArgument ( new Reference ( 'debug.file_link_formatter.url_format' ) ) ) ; } }
docstring: Loads the web profiler configuration.
  
  @param array            $configs   An array of configuration settings
  @param ContainerBuilder $container A ContainerBuilder instance
docstring_tokens: Loads the web profiler configuration .