/** * @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(); }
public function before() { Security::instance()->addRule(new NoopSecurityRule()); }
public function before() { Security::instance()->addRule(new LocalhostSecurityRule()); }