eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Security\PolicyProvider\PolicyProviderInterface::addPolicies PHP 메소드

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
    public function addPolicies(ConfigBuilderInterface $configBuilder);
PolicyProviderInterface