-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[EventDispatcher] Add Drupal EventDispatcher #12521
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
Changes from 1 commit
ec5e904
84c54d8
eb07cb9
973b0d3
2548230
56d8ce5
002cf8b
2e39ed6
a2cd250
60845da
3a4f177
PHP 5.3 does not support callables in array($object, $method) form
znerol Nov 21, 2014
273a397
02d84f7
0150640
d0f986d
0bee27f
9a9b31c
b4f56ab
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ | |
|
||
use Symfony\Component\DependencyInjection\ContainerBuilder; | ||
use Symfony\Component\EventDispatcher\DependencyInjection\CompiledRegisterListenersPass; | ||
use Symfony\Component\EventDispatcher\EventSubscriberInterface; | ||
|
||
class CompiledRegisterListenersPassTest extends \PHPUnit_Framework_TestCase | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there a reason we don't use @coversDefaultClass and @Covers ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We don't use those annotations. You can find some |
||
{ | ||
|
@@ -140,7 +141,7 @@ public function testAbstractEventListener() | |
} | ||
} | ||
|
||
class CompiledSubscriberService implements \Symfony\Component\EventDispatcher\EventSubscriberInterface | ||
class CompiledSubscriberService implements EventSubscriberInterface | ||
{ | ||
public static function getSubscribedEvents() | ||
{ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instead of
['service'][0]
and['service'][1]
, I would prefer using 2 keysservice
andmethod
. Otherwise, usingservice
as key is wrong, because it does not represent a service