Skip to content

Commit

Permalink
EventDispatcher - use case sensitive event names;
Browse files Browse the repository at this point in the history
  • Loading branch information
gam6itko committed Nov 12, 2018
1 parent 21a03e1 commit 2cb36ae
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -22,7 +22,7 @@ public function process(ContainerBuilder $container)
}

$class = isset($attributes['class'])
? strtolower($container->getParameterBag()->resolveValue($attributes['class']))
? $container->getParameterBag()->resolveValue($attributes['class'])
: null;

$format = isset($attributes['format']) ? $attributes['format'] : null;
Expand Down Expand Up @@ -52,7 +52,7 @@ public function process(ContainerBuilder $container)
throw new \RuntimeException(sprintf('The service "%s" (class: %s) must return an event for each subscribed event.', $id, $subscriberClass));
}

$class = isset($eventData['class']) ? strtolower($eventData['class']) : null;
$class = isset($eventData['class']) ? $eventData['class'] : null;
$format = isset($eventData['format']) ? $eventData['format'] : null;
$method = isset($eventData['method']) ? $eventData['method'] : EventDispatcher::getDefaultMethodName($eventData['event']);
$priority = isset($eventData['priority']) ? (integer)$eventData['priority'] : 0;
Expand Down

0 comments on commit 2cb36ae

Please sign in to comment.