mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-25 19:48:49 +02:00
⬆️ N°4770 Update to latest Symfony 3.4
This commit is contained in:
@@ -32,14 +32,14 @@ class ProfilerPass implements CompilerPassInterface
|
||||
$definition = $container->getDefinition('profiler');
|
||||
|
||||
$collectors = new \SplPriorityQueue();
|
||||
$order = PHP_INT_MAX;
|
||||
$order = \PHP_INT_MAX;
|
||||
foreach ($container->findTaggedServiceIds('data_collector', true) as $id => $attributes) {
|
||||
$priority = isset($attributes[0]['priority']) ? $attributes[0]['priority'] : 0;
|
||||
$template = null;
|
||||
|
||||
if (isset($attributes[0]['template'])) {
|
||||
if (!isset($attributes[0]['id'])) {
|
||||
throw new InvalidArgumentException(sprintf('Data collector service "%s" must have an id attribute in order to specify a template', $id));
|
||||
throw new InvalidArgumentException(sprintf('Data collector service "%s" must have an id attribute in order to specify a template.', $id));
|
||||
}
|
||||
$template = [$attributes[0]['id'], $attributes[0]['template']];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user