original_string: protected function denyAccessUnlessGranted($attributes, $subject = null, string $message = 'Access Denied.')
      {
          if (!$this->isGranted($attributes, $subject)) {
              $exception = $this->createAccessDeniedException($message);
              $exception->setAttributes($attributes);
              $exception->setSubject($subject);
  
              throw $exception;
          }
      }
code: protected function denyAccessUnlessGranted($attributes, $subject = null, string $message = 'Access Denied.')
      {
          if (!$this->isGranted($attributes, $subject)) {
              $exception = $this->createAccessDeniedException($message);
              $exception->setAttributes($attributes);
              $exception->setSubject($subject);
  
              throw $exception;
          }
      }
code_tokens: protected function denyAccessUnlessGranted ( $ attributes , $ subject = null , string $ message = 'Access Denied.' ) { if ( ! $ this -> isGranted ( $ attributes , $ subject ) ) { $ exception = $ this -> createAccessDeniedException ( $ message ) ; $ exception -> setAttributes ( $ attributes ) ; $ exception -> setSubject ( $ subject ) ; throw $ exception ; } }
docstring: Throws an exception unless the attributes are granted against the current authentication token and optionally
  supplied subject.
  
  @throws AccessDeniedException
  
  @final
docstring_tokens: Throws an exception unless the attributes are granted against the current authentication token and optionally supplied subject .