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;
        }
    }
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;
        }
    }
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 ; } }
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
Check if the attributes are granted against the current authentication token and optionally supplied object .