Skip to content

Commit ab0ee9b

Browse files
committed
Add Enum class representing available Repositories.
1 parent a9fc1b6 commit ab0ee9b

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

src/Enum/Repository.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php declare(strict_types=1);
2+
3+
namespace Pdsinterop\Solid\Auth\Enum;
4+
5+
use Pdsinterop\Solid\Auth\Repository\AccessToken;
6+
use Pdsinterop\Solid\Auth\Repository\AuthCode;
7+
use Pdsinterop\Solid\Auth\Repository\Client;
8+
use Pdsinterop\Solid\Auth\Repository\RefreshToken;
9+
use Pdsinterop\Solid\Auth\Repository\Scope;
10+
11+
class Repository
12+
{
13+
public const ACCESS_TOKEN = AccessToken::class;
14+
public const AUTH_CODE = AuthCode::class;
15+
public const CLIENT = Client::class;
16+
public const REFRESH_TOKEN = RefreshToken::class;
17+
public const SCOPE = Scope::class;
18+
// The USER class is only used by the deprecated password grant
19+
// public const USER = \Pdsinterop\Solid\Auth\Repository\User::class;
20+
}

0 commit comments

Comments
 (0)