class NodejsSubscriber in Node.js integration 8
Hierarchy
- class \Drupal\nodejs\EventSubscriber\NodejsSubscriber implements \Symfony\Component\EventDispatcher\EventSubscriberInterface
Expanded class hierarchy of NodejsSubscriber
1 string reference to 'NodejsSubscriber'
1 service uses NodejsSubscriber
File
- src/
EventSubscriber/ NodejsSubscriber.php, line 12
Namespace
Drupal\nodejs\EventSubscriberView source
class NodejsSubscriber implements EventSubscriberInterface {
protected $nodejs;
public function __construct(Nodejs $nodejs) {
$this->nodejs = $nodejs;
}
public function sendMessages(PostResponseEvent $event) {
$this->nodejs
->sendMessages();
}
/**
* {@inheritdoc}
*/
static function getSubscribedEvents() {
$events[KernelEvents::TERMINATE][] = array(
'sendMessages',
40,
);
return $events;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
NodejsSubscriber:: |
protected | property | ||
NodejsSubscriber:: |
static | function | Returns an array of event names this subscriber wants to listen to. | |
NodejsSubscriber:: |
public | function | ||
NodejsSubscriber:: |
public | function |