Browse Source

Add back implementedEvents() to avoid reflection.

ADmad 10 years ago
parent
commit
3b5bd7a963
1 changed files with 13 additions and 0 deletions
  1. 13 0
      src/Controller/Component/AuthComponent.php

+ 13 - 0
src/Controller/Component/AuthComponent.php

@@ -315,6 +315,19 @@ class AuthComponent extends Component
     }
 
     /**
+     * Events supported by this component.
+     *
+     * @return array
+     */
+    public function implementedEvents()
+    {
+        return [
+            'Controller.beforeFilter' => 'beforeFilter',
+            'Controller.startup' => 'startup',
+        ];
+    }
+
+    /**
      * Checks whether current action is accessible without authentication.
      *
      * @param \Cake\Controller\Controller $controller A reference to the instantiating