minor #18031 [EventDispatcher] fix syntax error (xabbuh)
This PR was merged into the 2.7 branch.
Discussion
----------
[EventDispatcher] fix syntax error
| Q | A
| ------------- | ---
| Branch | 2.7
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #18025
| License | MIT
| Doc PR |
Commits
-------
98cc980
[EventDispatcher] fix syntax error
This commit is contained in:
commit
a89154d0bb
@ -99,7 +99,7 @@ class RegisterListenersPass implements CompilerPassInterface
|
|||||||
$class = $container->getParameterBag()->resolveValue($def->getClass());
|
$class = $container->getParameterBag()->resolveValue($def->getClass());
|
||||||
|
|
||||||
$interface = 'Symfony\Component\EventDispatcher\EventSubscriberInterface';
|
$interface = 'Symfony\Component\EventDispatcher\EventSubscriberInterface';
|
||||||
if (!is_subclass_of($class, $interface))) {
|
if (!is_subclass_of($class, $interface)) {
|
||||||
throw new \InvalidArgumentException(sprintf('Service "%s" must implement interface "%s".', $id, $interface));
|
throw new \InvalidArgumentException(sprintf('Service "%s" must implement interface "%s".', $id, $interface));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user