code: private function registerProfilerConfiguration(array $config, XmlFileLoader $loader)
      {
          if ($config['enabled'] && $config['collect'] && class_exists('Symfony\Component\Debug\Debug')) {
              $loader->load('block_debug.xml');
              $loader->load('collectors.xml');
          }
      }
docs: Loads the profiler configuration.
  
  @param array         $config A profiler configuration array
  @param XmlFileLoader $loader An XmlFileLoader instance
  
  @throws \LogicException