Upgrade 1-11.38

This commit is contained in:
xesmyd
2026-03-30 14:10:30 +02:00
parent f2a7e6d1fc
commit ac648ef29d
24665 changed files with 69682 additions and 2205004 deletions
+1 -4
View File
@@ -12,8 +12,7 @@
namespace Symfony\Component\Security\Core\Role;
/**
* Role is a simple implementation of a RoleInterface where the role is a
* string.
* Role is a simple implementation representing a role identified by a string.
*
* @author Fabien Potencier <fabien@symfony.com>
*/
@@ -22,8 +21,6 @@ class Role implements RoleInterface
private $role;
/**
* Constructor.
*
* @param string $role The role name
*/
public function __construct($role)
+2 -4
View File
@@ -22,8 +22,6 @@ class RoleHierarchy implements RoleHierarchyInterface
protected $map;
/**
* Constructor.
*
* @param array $hierarchy An array defining the hierarchy
*/
public function __construct(array $hierarchy)
@@ -54,10 +52,10 @@ class RoleHierarchy implements RoleHierarchyInterface
protected function buildRoleMap()
{
$this->map = array();
$this->map = [];
foreach ($this->hierarchy as $main => $roles) {
$this->map[$main] = $roles;
$visited = array();
$visited = [];
$additionalRoles = $roles;
while ($role = array_shift($additionalRoles)) {
if (!isset($this->hierarchy[$role])) {
+2
View File
@@ -18,6 +18,8 @@ namespace Symfony\Component\Security\Core\Role;
* supported by at least one AccessDecisionManager.
*
* @author Fabien Potencier <fabien@symfony.com>
*
* @deprecated The RoleInterface is deprecated since version 3.3 and will be removed in 4.0. Extend the Symfony\Component\Security\Core\Role\Role class instead.
*/
interface RoleInterface
{
-2
View File
@@ -24,8 +24,6 @@ class SwitchUserRole extends Role
private $source;
/**
* Constructor.
*
* @param string $role The role as a string
* @param TokenInterface $source The original token
*/