protected function denyWithMessage($string) { $message = $this->get('translator')->trans($string); throw new HttpException(403, $message); }