original_string: public function isGranted($attributes, $object = null,
                                $catchException = true)
      {
          try {
              return $this->app['security.authorization_checker']->isGranted($attributes, $object);
          } catch (AuthenticationCredentialsNotFoundException $e) {
              if ($catchException) {
                  return false;
              }
              throw $e;
          }
      }
code: public function isGranted($attributes, $object = null,
                                $catchException = true)
      {
          try {
              return $this->app['security.authorization_checker']->isGranted($attributes, $object);
          } catch (AuthenticationCredentialsNotFoundException $e) {
              if ($catchException) {
                  return false;
              }
              throw $e;
          }
      }
code_tokens: public function isGranted ( $ attributes , $ object = null , $ catchException = true ) { try { return $ this -> app [ 'security.authorization_checker' ] -> isGranted ( $ attributes , $ object ) ; } catch ( AuthenticationCredentialsNotFoundException $ e ) { if ( $ catchException ) { return false ; } throw $ e ; } }
docstring: Check if the attributes are granted against the current authentication token and optionally supplied object.
  @param mixed $attributes
  @param mixed $object
  @param boolean $catchException
  @return boolean
  @throws AuthenticationCredentialsNotFoundException
docstring_tokens: Check if the attributes are granted against the current authentication token and optionally supplied object .