* * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ /** * Profiler. * * @author Fabien Potencier */ class Profiler extends BaseProfiler { public function __construct(ContainerInterface $container, ProfilerStorageInterface $storage, LoggerInterface $logger = null) { parent::__construct($storage, $logger); foreach ($container->findTaggedServiceIds('data_collector') as $id => $attributes) { $this->addCollector($container->get($id)); } } }