コード例 #1
0
 /**
  * @inheritdoc
  */
 public final function beforeRoute()
 {
     //! trigger
     $this->dispatchEvent(new BeforeRouteEvent());
     //! child 'before'
     if (method_exists($this, self::HOOK_BEFORE)) {
         call_user_func([$this, self::HOOK_BEFORE]);
     }
     //! check for security concerns
     Security::instance()->secure();
 }
コード例 #2
0
 public function before()
 {
     Security::instance()->addRule(new NoopSecurityRule());
 }
コード例 #3
0
 public function before()
 {
     Security::instance()->addRule(new LocalhostSecurityRule());
 }