class SubscriberService in Zircon Profile 8
Same name in this branch
- 8 vendor/symfony/event-dispatcher/Tests/ContainerAwareEventDispatcherTest.php \Symfony\Component\EventDispatcher\Tests\SubscriberService
- 8 vendor/symfony/event-dispatcher/Tests/DependencyInjection/RegisterListenersPassTest.php \Symfony\Component\EventDispatcher\Tests\DependencyInjection\SubscriberService
Same name and namespace in other branches
- 8.0 vendor/symfony/event-dispatcher/Tests/ContainerAwareEventDispatcherTest.php \Symfony\Component\EventDispatcher\Tests\SubscriberService
Hierarchy
- class \Symfony\Component\EventDispatcher\Tests\SubscriberService implements EventSubscriberInterface
Expanded class hierarchy of SubscriberService
File
- vendor/
symfony/ event-dispatcher/ Tests/ ContainerAwareEventDispatcherTest.php, line 237
Namespace
Symfony\Component\EventDispatcher\TestsView source
class SubscriberService implements EventSubscriberInterface {
public static function getSubscribedEvents() {
return array(
'onEvent' => array(
'onEvent',
),
);
}
public function onEvent(Event $e) {
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
SubscriberService:: |
public static | function |
Returns an array of event names this subscriber wants to listen to. Overrides EventSubscriberInterface:: |
|
SubscriberService:: |
public | function |