CoreFiles by mySites.guru
AssignDefaultRoles.php33 lines, 650 bytes, from Joomla_6.0.2-Stable-Full_Package.zip
Raw History Compare with 6.0.1
md5
2285ee0eea4d7c72ec45969650209c1c
sha1
dec9201b5d287f9aff492b465e844d5102a603d0
sha256
0b5608419d672c0028f318933b9fd50ab37533e9dac3e49bba5bf7b85aa3cf84
<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <[email protected]>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\Ldap\Security;

use Symfony\Component\Ldap\Entry;

final readonly class AssignDefaultRoles implements RoleFetcherInterface
{
    /**
     * @param string[] $roles
     */
    public function __construct(
        private array $roles,
    ) {
    }

    /**
     * @return string[]
     */
    public function fetchRoles(Entry $entry): array
    {
        return $this->roles;
    }
}

The same content is in 17 releases, Joomla 6.0.0-beta1 to 6.1.0-alpha1. See them all, or every version of this file.