/** * {@inheritdoc} */ public function handle(Route $route, array $inputs) { if ($route->isSecure() && !$this->user->isAuthenticated()) { throw new AuthenticationException(); } return !is_null($this->next) ? $this->next->handle($route, $inputs) : null; }
/** * {@inheritdoc} */ public function handle(Route $route, array $inputs) { if ($this->user->isAuthenticated()) { $this->doLog($route, $inputs); } // Pass the request to the next middleware return !is_null($this->next) ? $this->next->handle($route, $inputs) : null; }