Skip to content

Commit f9bab97

Browse files
committed
More docs
1 parent 5b9581a commit f9bab97

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

lib/Sabre/DAV/Server.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,16 @@ public function addPlugin(Sabre_DAV_ServerPlugin $plugin) {
170170
* Subscribe to an event.
171171
*
172172
* When the event is triggered, we'll call all the specified callbacks.
173+
* It is possible to control the order of the callbacks through the
174+
* priority argument.
175+
*
176+
* This is for example used to make sure that the authentication plugin
177+
* is triggered before anything else. If it's not needed to change this
178+
* number, it is recommended to ommit.
173179
*
174180
* @param string $event
175-
* @param callback $callback
181+
* @param callback $callback
182+
* @param int $priority
176183
* @return void
177184
*/
178185
public function subscribeEvent($event, $callback, $priority = 100) {

0 commit comments

Comments
 (0)