Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-01-15 10:32:09 +0300
committerJoas Schilling <coding@schilljs.com>2021-01-15 10:34:24 +0300
commitb8acf2fe69a856511e004a512e2168ac6990c87a (patch)
treef222efedd8dcf89c8f9cb09101b825e005d75d4c /lib/public/EventDispatcher
parentb0caa55563acc16c02a3bb8463af863d4f83879c (diff)
Add a hint about the direction of priority
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/public/EventDispatcher')
-rw-r--r--lib/public/EventDispatcher/IEventDispatcher.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/public/EventDispatcher/IEventDispatcher.php b/lib/public/EventDispatcher/IEventDispatcher.php
index 6f3adf159c0..f38c0828bce 100644
--- a/lib/public/EventDispatcher/IEventDispatcher.php
+++ b/lib/public/EventDispatcher/IEventDispatcher.php
@@ -40,7 +40,8 @@ interface IEventDispatcher {
* @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
* @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
*/
@@ -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
* @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
- * @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
*/