protected function getProfilerService() { $a = $this->get('monolog.logger.profiler'); $b = $this->get('kernel'); $c = new \Symfony\Component\HttpKernel\DataCollector\ConfigDataCollector(); $c->setKernel($b); $this->services['profiler'] = $instance = new \Symfony\Component\HttpKernel\Profiler\Profiler(new \Symfony\Component\HttpKernel\Profiler\FileProfilerStorage('file:C:/xampp/htdocs/symfony/app/cache/prod/profiler', '', '', 86400), $a); $instance->disable(); $instance->add($c); $instance->add($this->get('data_collector.request')); $instance->add(new \Symfony\Component\HttpKernel\DataCollector\ExceptionDataCollector()); $instance->add(new \Symfony\Component\HttpKernel\DataCollector\EventDataCollector()); $instance->add(new \Symfony\Component\HttpKernel\DataCollector\LoggerDataCollector($a)); $instance->add(new \Symfony\Component\HttpKernel\DataCollector\TimeDataCollector($b)); $instance->add(new \Symfony\Component\HttpKernel\DataCollector\MemoryDataCollector()); $instance->add($this->get('data_collector.router')); $instance->add(new \Symfony\Bundle\SecurityBundle\DataCollector\SecurityDataCollector($this->get('security.context'))); $instance->add(new \Symfony\Bundle\SwiftmailerBundle\DataCollector\MessageDataCollector($this)); $instance->add(new \Doctrine\Bundle\DoctrineBundle\DataCollector\DoctrineDataCollector($this->get('doctrine'))); return $instance; }
/** * Gets the 'profiler' service. * * This service is shared. * This method always returns the same instance of the service. * * @return \Symfony\Component\HttpKernel\Profiler\Profiler A Symfony\Component\HttpKernel\Profiler\Profiler instance. */ protected function getProfilerService() { $a = $this->get('monolog.logger.profiler', ContainerInterface::NULL_ON_INVALID_REFERENCE); $b = $this->get('kernel', ContainerInterface::NULL_ON_INVALID_REFERENCE); $c = new \Symfony\Component\HttpKernel\DataCollector\ConfigDataCollector(); if ($this->has('kernel')) { $c->setKernel($b); } $d = new \Doctrine\Bundle\DoctrineBundle\DataCollector\DoctrineDataCollector($this->get('doctrine')); $d->addLogger('default', $this->get('doctrine.dbal.logger.profiling.default')); $this->services['profiler'] = $instance = new \Symfony\Component\HttpKernel\Profiler\Profiler(new \Symfony\Component\HttpKernel\Profiler\FileProfilerStorage('file:' . __DIR__ . '/profiler', '', '', 86400), $a); $instance->disable(); $instance->add($c); $instance->add($this->get('data_collector.request')); $instance->add(new \Symfony\Component\HttpKernel\DataCollector\ExceptionDataCollector()); $instance->add(new \Symfony\Component\HttpKernel\DataCollector\EventDataCollector($this->get('debug.event_dispatcher', ContainerInterface::NULL_ON_INVALID_REFERENCE))); $instance->add(new \Symfony\Component\HttpKernel\DataCollector\LoggerDataCollector($a)); $instance->add(new \Symfony\Component\HttpKernel\DataCollector\TimeDataCollector($b, $this->get('debug.stopwatch', ContainerInterface::NULL_ON_INVALID_REFERENCE))); $instance->add(new \Symfony\Component\HttpKernel\DataCollector\MemoryDataCollector()); $instance->add($this->get('data_collector.router')); $instance->add(new \Symfony\Bundle\SwiftmailerBundle\DataCollector\MessageDataCollector($this)); $instance->add($d); return $instance; }
/** * Gets the 'profiler' service. * * This service is shared. * This method always returns the same instance of the service. * * @return \Symfony\Component\HttpKernel\Profiler\Profiler A Symfony\Component\HttpKernel\Profiler\Profiler instance */ protected function getProfilerService() { $a = $this->get('monolog.logger.profiler', ContainerInterface::NULL_ON_INVALID_REFERENCE); $b = $this->get('kernel', ContainerInterface::NULL_ON_INVALID_REFERENCE); $c = new \Doctrine\Bundle\DoctrineBundle\DataCollector\DoctrineDataCollector($this->get('doctrine')); $c->addLogger('default', $this->get('doctrine.dbal.logger.profiling.default')); $d = new \Symfony\Component\HttpKernel\DataCollector\ConfigDataCollector(); if ($this->has('kernel')) { $d->setKernel($b); } $this->services['profiler'] = $instance = new \Symfony\Component\HttpKernel\Profiler\Profiler(new \Symfony\Component\HttpKernel\Profiler\FileProfilerStorage('file:' . __DIR__ . '/profiler'), $a); $instance->disable(); $instance->add($this->get('data_collector.request')); $instance->add(new \Symfony\Component\HttpKernel\DataCollector\TimeDataCollector($b, $this->get('debug.stopwatch', ContainerInterface::NULL_ON_INVALID_REFERENCE))); $instance->add(new \Symfony\Component\HttpKernel\DataCollector\MemoryDataCollector()); $instance->add(new \Symfony\Component\HttpKernel\DataCollector\AjaxDataCollector()); $instance->add($this->get('data_collector.form')); $instance->add(new \Symfony\Component\HttpKernel\DataCollector\ExceptionDataCollector()); $instance->add(new \Symfony\Component\HttpKernel\DataCollector\LoggerDataCollector($a)); $instance->add(new \Symfony\Component\HttpKernel\DataCollector\EventDataCollector($this->get('debug.event_dispatcher', ContainerInterface::NULL_ON_INVALID_REFERENCE))); $instance->add($this->get('data_collector.router')); $instance->add($this->get('data_collector.translation')); $instance->add(new \Symfony\Bundle\SecurityBundle\DataCollector\SecurityDataCollector($this->get('security.token_storage', ContainerInterface::NULL_ON_INVALID_REFERENCE), $this->get('security.role_hierarchy'), $this->get('security.logout_url_generator'), $this->get('debug.security.access.decision_manager'))); $instance->add(new \Symfony\Bridge\Twig\DataCollector\TwigDataCollector($this->get('twig.profile'))); $instance->add($c); $instance->add(new \Symfony\Bundle\SwiftmailerBundle\DataCollector\MessageDataCollector($this)); $instance->add($this->get('data_collector.dump')); $instance->add($d); return $instance; }