Add a hint about the direction of priority
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
b0caa55563
commit
b8acf2fe69
|
@ -119,7 +119,8 @@ interface IRegistrationContext {
|
||||||
* @psalm-param string|class-string<T> $event preferably the fully-qualified class name of the Event sub class to listen for
|
* @psalm-param string|class-string<T> $event preferably the fully-qualified class name of the Event sub class to listen for
|
||||||
* @param string $listener fully qualified class name (or ::class notation) of a \OCP\EventDispatcher\IEventListener that can be built by the DI container
|
* @param string $listener fully qualified class name (or ::class notation) of a \OCP\EventDispatcher\IEventListener that can be built by the DI container
|
||||||
* @psalm-param class-string<\OCP\EventDispatcher\IEventListener<T>> $listener fully qualified class name that can be built by the DI container
|
* @psalm-param class-string<\OCP\EventDispatcher\IEventListener<T>> $listener fully qualified class name that can be built by the DI container
|
||||||
* @param int $priority
|
* @param int $priority The higher this value, the earlier an event
|
||||||
|
* listener will be triggered in the chain (defaults to 0)
|
||||||
*
|
*
|
||||||
* @see IEventDispatcher::addServiceListener()
|
* @see IEventDispatcher::addServiceListener()
|
||||||
*
|
*
|
||||||
|
|
|
@ -40,7 +40,8 @@ interface IEventDispatcher {
|
||||||
* @psalm-param string|class-string<T> $eventName preferably the fully-qualified class name of the Event sub class
|
* @psalm-param string|class-string<T> $eventName preferably the fully-qualified class name of the Event sub class
|
||||||
* @param callable $listener the object that is invoked when a matching event is dispatched
|
* @param callable $listener the object that is invoked when a matching event is dispatched
|
||||||
* @psalm-param callable(T):void $listener
|
* @psalm-param callable(T):void $listener
|
||||||
* @param int $priority
|
* @param int $priority The higher this value, the earlier an event
|
||||||
|
* listener will be triggered in the chain (defaults to 0)
|
||||||
*
|
*
|
||||||
* @since 17.0.0
|
* @since 17.0.0
|
||||||
*/
|
*/
|
||||||
|
@ -63,7 +64,8 @@ interface IEventDispatcher {
|
||||||
* @psalm-param string|class-string<T> $eventName preferably the fully-qualified class name of the Event sub class to listen for
|
* @psalm-param string|class-string<T> $eventName preferably the fully-qualified class name of the Event sub class to listen for
|
||||||
* @param string $className fully qualified class name (or ::class notation) of a \OCP\EventDispatcher\IEventListener that can be built by the DI container
|
* @param string $className fully qualified class name (or ::class notation) of a \OCP\EventDispatcher\IEventListener that can be built by the DI container
|
||||||
* @psalm-param class-string<\OCP\EventDispatcher\IEventListener<T>> $className fully qualified class name that can be built by the DI container
|
* @psalm-param class-string<\OCP\EventDispatcher\IEventListener<T>> $className fully qualified class name that can be built by the DI container
|
||||||
* @param int $priority
|
* @param int $priority The higher this value, the earlier an event
|
||||||
|
* listener will be triggered in the chain (defaults to 0)
|
||||||
*
|
*
|
||||||
* @since 17.0.0
|
* @since 17.0.0
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue