PHP 인터페이스 eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Security\PolicyProvider\PolicyProviderInterface

Each policy provider provides a collection of permission "modules". Each module can provide "functions". E.g. "content/read": "content" is the module, "read" is the function. Each function can provide a collection of limitations. These need to be implemented as "limitation types" and declared as services with "ezpublish.limitationType" service tag. Limitation types also provide value objects based on \eZ\Publish\API\Repository\Values\User\Limitation abstract class.
부터: 6.0
파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel

공개 메소드들

메소드 설명
addPolicies ( eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\ConfigBuilderInterface $configBuilder ) : array Adds policies configuration hash to $configBuilder.

메소드 상세

addPolicies() 공개 메소드

Policies configuration hash contains declared modules, functions and limitations. First level key is the module name, value is a hash of available functions, with function name as key. Function value is an array of available limitations, identified by the alias declared in LimitationType service tag. If no limitation is provided, value can be null. Example: php [ "content" => [ "read" => ["Class", "ParentClass", "Node", "Language"], "edit" => ["Class", "ParentClass", "Language"] ], "custom_module" => [ "custom_function_1" => null, "custom_function_2" => ["CustomLimitation"] ], ] Equivalent in YAML: yaml content: read: [Class, ParentClass, Node, Language] edit: [Class, ParentClass, Language] # ... custom_module: custom_function_1: ~ custom_function_2: [CustomLimitation]
public addPolicies ( eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\ConfigBuilderInterface $configBuilder ) : array
$configBuilder eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration\ConfigBuilderInterface
리턴 array