Your IP : 216.73.217.79


Current Path : /var/www/v3.cesa.co.za/vendor/league/oauth2-server-bundle/src/Manager/InMemory/
Upload File :
Current File : /var/www/v3.cesa.co.za/vendor/league/oauth2-server-bundle/src/Manager/InMemory/ScopeManager.php

<?php

declare(strict_types=1);

namespace League\Bundle\OAuth2ServerBundle\Manager\InMemory;

use League\Bundle\OAuth2ServerBundle\Manager\ScopeManagerInterface;
use League\Bundle\OAuth2ServerBundle\ValueObject\Scope;

final class ScopeManager implements ScopeManagerInterface
{
    /**
     * @var array<string, Scope>
     */
    private $scopes = [];

    public function find(string $identifier): ?Scope
    {
        return $this->scopes[$identifier] ?? null;
    }

    public function save(Scope $scope): void
    {
        $this->scopes[(string) $scope] = $scope;
    }
}