Lines Matching refs:format
50 …ddListener(string $eventName, $callable, ?string $class = null, ?string $format = null, ?string $i… argument
52 $this->listeners[$eventName][] = [$callable, $class, $format, $interface];
65 $format = $eventData['format'] ?? null;
67 … $this->listeners[$eventData['event']][] = [[$subscriber, $method], $class, $format, $interface];
72 public function hasListeners(string $eventName, string $class, string $format): bool argument
78 if (!isset($this->classListeners[$eventName][$class][$format])) {
79 …$this->classListeners[$eventName][$class][$format] = $this->initializeListeners($eventName, $class…
82 return !!$this->classListeners[$eventName][$class][$format];
85 public function dispatch(string $eventName, string $class, string $format, Event $event): void argument
95 if (!isset($this->classListeners[$eventName][$objectClass][$format])) {
96 …->classListeners[$eventName][$objectClass][$format] = $this->initializeListeners($eventName, $clas…
99 foreach ($this->classListeners[$eventName][$objectClass][$format] as $listener) {
104 \call_user_func($listener[0], $event, $eventName, $class, $format, $this);
115 …protected function initializeListeners(string $eventName, string $loweredClass, string $format): a… argument
122 if (null !== $listener[2] && $format !== $listener[2]) {