mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 19:42:38 +02:00
Update composer
This commit is contained in:
parent
330cdbe615
commit
0c83c9a678
442 changed files with 9523 additions and 10793 deletions
|
@ -27,8 +27,6 @@ interface EventDispatcherInterface extends ContractsEventDispatcherInterface
|
|||
*
|
||||
* @param int $priority The higher this value, the earlier an event
|
||||
* listener will be triggered in the chain (defaults to 0)
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function addListener(string $eventName, callable $listener, int $priority = 0);
|
||||
|
||||
|
@ -37,21 +35,14 @@ interface EventDispatcherInterface extends ContractsEventDispatcherInterface
|
|||
*
|
||||
* The subscriber is asked for all the events it is
|
||||
* interested in and added as a listener for these events.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function addSubscriber(EventSubscriberInterface $subscriber);
|
||||
|
||||
/**
|
||||
* Removes an event listener from the specified events.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function removeListener(string $eventName, callable $listener);
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
public function removeSubscriber(EventSubscriberInterface $subscriber);
|
||||
|
||||
/**
|
||||
|
@ -59,17 +50,21 @@ interface EventDispatcherInterface extends ContractsEventDispatcherInterface
|
|||
*
|
||||
* @return array<callable[]|callable>
|
||||
*/
|
||||
public function getListeners(?string $eventName = null): array;
|
||||
public function getListeners(?string $eventName = null);
|
||||
|
||||
/**
|
||||
* Gets the listener priority for a specific event.
|
||||
*
|
||||
* Returns null if the event or the listener does not exist.
|
||||
*
|
||||
* @return int|null
|
||||
*/
|
||||
public function getListenerPriority(string $eventName, callable $listener): ?int;
|
||||
public function getListenerPriority(string $eventName, callable $listener);
|
||||
|
||||
/**
|
||||
* Checks whether an event has any registered listeners.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function hasListeners(?string $eventName = null): bool;
|
||||
public function hasListeners(?string $eventName = null);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue