Skip to content

Commit

Permalink
Add Component::beforeFilter
Browse files Browse the repository at this point in the history
This method is an event listener that listens to the
Controller.initialize event. I decided to copy the controller method
name so there was some semblance of consistency. This may be a bad idea
though.
  • Loading branch information
markstory committed Oct 6, 2014
1 parent 293b4b0 commit 946bf55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/Component.php
Expand Up @@ -141,7 +141,7 @@ public function __get($name) {
*/
public function implementedEvents() {
$eventMap = [
// 'Controller.initialize' => 'initialize',
'Controller.initialize' => 'beforeFilter',
'Controller.startup' => 'startup',
'Controller.beforeRender' => 'beforeRender',
'Controller.beforeRedirect' => 'beforeRedirect',
Expand Down

0 comments on commit 946bf55

Please sign in to comment.