Skip to content

Commit

Permalink
Expand on docs around event priorities.
Browse files Browse the repository at this point in the history
Add some detail around how priorities are handled.
  • Loading branch information
markstory committed May 16, 2014
1 parent a9d3a61 commit c8baef1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Event/EventManager.php
Expand Up @@ -89,8 +89,8 @@ public static function instance($manager = null) {
* is an instance of Cake\Event\EventListener this argument will be ignored
*
* @param array $options used to set the `priority` flag to the listener. In the future more options may be added.
* Priorities are handled like queues, and multiple attachments added to the same priority queue will be treated in
* the order of insertion.
* Priorities are treated as queues. Lower values are called before higher ones, and multiple attachments
* added to the same priority queue will be treated in the order of insertion.
*
* @return void
* @throws \InvalidArgumentException When event key is missing or callable is not an
Expand Down

0 comments on commit c8baef1

Please sign in to comment.