File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments