class SymfonyProfilerPass implements CompilerPassInterface
24
{
25
1
public function process(ContainerBuilder $container)
26
{
27
/* @var Definition $def */
28
1
if (!$container->hasDefinition('php_translation.data_collector')) {
29
1
return;
30
}
31
32
if (!$container->hasDefinition('translator.data_collector')) {
33
throw new \LogicException('[PHP-Translation] To integrate with the Symfony profiler you first need to enable it. Please set framework.translator.enabled: true');