PHP Class Youshido\GraphQLBundle\Security\Manager\DefaultSecurityManager

Inheritance: implements Youshido\GraphQLBundle\Security\Manager\SecurityManagerInterface
Mostrar archivo Open project: youshido/graphql-bundle

Public Methods

Method Description
__construct ( Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface $authorizationChecker, array $guardConfig = [] )
createNewFieldAccessDeniedException ( ResolveInfo $resolveInfo ) : mixed
createNewOperationAccessDeniedException ( Query $query ) : mixed
isGrantedToFieldResolve ( ResolveInfo $resolveInfo ) : boolean
isGrantedToOperationResolve ( Query $query ) : boolean
isSecurityEnabledFor ( string $attribute ) : boolean
setFieldSecurityEnabled ( boolean $fieldSecurityEnabled )
setRooOperationSecurityEnabled ( boolean $rootOperationSecurityEnabled )

Method Details

__construct() public method

public __construct ( Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface $authorizationChecker, array $guardConfig = [] )
$authorizationChecker Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface
$guardConfig array

createNewFieldAccessDeniedException() public method

public createNewFieldAccessDeniedException ( ResolveInfo $resolveInfo ) : mixed
$resolveInfo Youshido\GraphQL\Execution\ResolveInfo
return mixed

createNewOperationAccessDeniedException() public method

public createNewOperationAccessDeniedException ( Query $query ) : mixed
$query Youshido\GraphQL\Parser\Ast\Query
return mixed

isGrantedToFieldResolve() public method

public isGrantedToFieldResolve ( ResolveInfo $resolveInfo ) : boolean
$resolveInfo Youshido\GraphQL\Execution\ResolveInfo
return boolean

isGrantedToOperationResolve() public method

public isGrantedToOperationResolve ( Query $query ) : boolean
$query Youshido\GraphQL\Parser\Ast\Query
return boolean

isSecurityEnabledFor() public method

public isSecurityEnabledFor ( string $attribute ) : boolean
$attribute string
return boolean

setFieldSecurityEnabled() public method

public setFieldSecurityEnabled ( boolean $fieldSecurityEnabled )
$fieldSecurityEnabled boolean

setRooOperationSecurityEnabled() public method

public setRooOperationSecurityEnabled ( boolean $rootOperationSecurityEnabled )
$rootOperationSecurityEnabled boolean