Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/event-dispatcher/ContainerAwareEventDispatcher.php @ 12:7a779792577d
Update Drupal core to v8.4.5 (via Composer)
author | Chris Cannam |
---|---|
date | Fri, 23 Feb 2018 15:52:07 +0000 |
parents | 4c8ae668cc8c |
children | 1fec387a4317 |
comparison
equal
deleted
inserted
replaced
11:bfffd8d7479a | 12:7a779792577d |
---|---|
102 * {@inheritdoc} | 102 * {@inheritdoc} |
103 */ | 103 */ |
104 public function hasListeners($eventName = null) | 104 public function hasListeners($eventName = null) |
105 { | 105 { |
106 if (null === $eventName) { | 106 if (null === $eventName) { |
107 return (bool) count($this->listenerIds) || (bool) count($this->listeners); | 107 return $this->listenerIds || $this->listeners || parent::hasListeners(); |
108 } | 108 } |
109 | 109 |
110 if (isset($this->listenerIds[$eventName])) { | 110 if (isset($this->listenerIds[$eventName])) { |
111 return true; | 111 return true; |
112 } | 112 } |