Skip to content
Snippets Groups Projects
Commit 2908a400 authored by nlighteneddesign's avatar nlighteneddesign
Browse files

Reset module

parent f6a0cef1
No related branches found
No related tags found
No related merge requests found
......@@ -271,9 +271,7 @@ protected static function reOrderImplementations(ContainerBuilder $container, ar
// $hookOrderOperation->order->classesAndMethods and create specifiers
// for HookPriority::change() while at it.
$otherSpecifiers = array_map(
static fn ($pair) => is_array($pair)
? $pair[0] . '::' . $pair[1]
: throw new \LogicException('classesAndMethods needs to be an array of arrays'),
static fn ($pair) => is_array($pair) ? $pair[0] . '::' . $pair[1] : throw new \LogicException('classesAndMethods needs to be an array of arrays'),
$hookOrderOperation->order->classesAndMethods
);
// Collect classes and methods for
......@@ -592,7 +590,7 @@ protected static function registerComplexHookImplementations(ContainerBuilder $c
if (count(array_unique($moduleFinder[$class][$method])) > 1) {
throw new \LogicException('Complex ordering can only work when all implementations on a single method are for the same module.');
}
$map[$combinedHook][$class][$method] = $moduleFinder[$class][$method];
$map[$combinedHook][$class][$method] = reset($moduleFinder[$class][$method]);
$priority = self::addTagToDefinition($container->findDefinition($class), $combinedHook, $method, $priority);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment