Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EventDispatcher - use case sensitive event names; #695

Merged
merged 2 commits into from Nov 12, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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
Expand Up @@ -121,7 +121,7 @@ public function testEventListener()
'serializer.pre_serialize' => [
[
['my_listener', 'onserializerpreserialize'],
'bar',
'Bar',
null
]
]], $call[1][0]);
Expand Down Expand Up @@ -161,7 +161,7 @@ public function testEventListenerWithParams()
'serializer.pre_serialize' => [
[
['my_listener', 'onserializerpreserialize'],
'bar',
'Bar',
null
]
]], $call[1][0]);
Expand Down Expand Up @@ -196,7 +196,7 @@ public function testEventSubscriber()
'serializer.pre_serialize' => [
[
['my_listener', 'onserializerpreserialize'],
'bar',
'Bar',
'json',
null
]
Expand Down