CoreFiles by mySites.guru
AssignDefaultRoles.php33 lines, 650 bytes, from Joomla_6.2.0-Stable-Full_Package.zip
Raw History Compare with 6.1.4
md5
b8280e0c7dfd078e99f12a696cb4dffa
sha1
c347836e33056dc697c37dfc3e018b12d922b8fc
sha256
a08f0034183b79c330fb32ac5818f92302d45af2ab3b0d4eb0829a7cffd2ccce
<?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 class AssignDefaultRoles implements RoleFetcherInterface
{
    /**
     * @param string[] $roles
     */
    public function __construct(
        private readonly array $roles,
    ) {
    }

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

The same content is in 32 releases, Joomla 6.1.0-alpha2 to 6.3.0-alpha1. See them all, or every version of this file.