Ejemplo n.º 1
0
 /**
  * Applies security checks to action request before routing.
  */
 public function route()
 {
     $action = $this->validateAction();
     /**
      * By pass security checks if requested action is public.
      */
     if (in_array($action, $this->getPublicActions())) {
         parent::fastRoute($action);
     }
     /**
      * if requester is not logged in deny access and render login page.
      */
     if (!$this->safe()) {
         $this->deny();
     }
     // access allowed.
     parent::fastRoute($action);
 }