Exponential 5.x Kernel 7.5.40 Exponential New Stack (Symfony-based) Kernel — PHP Class Reference

Attribute.php
Go to the documentation of this file.
1 <?php
2
7 namespace eZ\Publish\Core\MVC\Symfony\Security\Authorization;
8
30 class Attribute
31 {
33 public $module;
34
36 public $function;
37
39 public $limitations;
40
41 public function __construct($module = null, $function = null, array $limitations = [])
42 {
43 $this->module = $module;
44 $this->function = $function;
45 $this->limitations = $limitations;
46 }
47
53 public function __toString()
54 {
55 return "EZ_ROLE_{$this->module}_{$this->function}";
56 }
57 }
eZ\Publish\Core\MVC\Symfony\Security\Authorization\Attribute
Authorization attribute class to be used with SecurityContextInterface::isGranted().
Definition: Attribute.php:31
eZ\Publish\Core\MVC\Symfony\Security\Authorization\Attribute\$limitations
$limitations
Definition: Attribute.php:39
eZ\Publish\Core\MVC\Symfony\Security\Authorization\Attribute\__toString
__toString()
String representation so that it's understandable by basic voters.
Definition: Attribute.php:53
eZ\Publish\Core\MVC\Symfony\Security\Authorization\Attribute\$function
$function
Definition: Attribute.php:36
eZ\Publish\Core\MVC\Symfony\Security\Authorization\Attribute\__construct
__construct($module=null, $function=null, array $limitations=[])
Definition: Attribute.php:41
eZ\Publish\Core\MVC\Symfony\Security\Authorization\Attribute\$module
$module
Definition: Attribute.php:33
eZ\Publish\Core\MVC\Symfony\Security\Authorization
Definition: Attribute.php:7
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.