File tree 33 files changed +59
-48
lines changed
33 files changed +59
-48
lines changed Original file line number Diff line number Diff line change 6
6
7
7
use League \Bundle \OAuth2ServerBundle \Manager \ClientManagerInterface ;
8
8
use League \Bundle \OAuth2ServerBundle \Model \AbstractClient ;
9
- use League \Bundle \OAuth2ServerBundle \Model \Grant ;
10
- use League \Bundle \OAuth2ServerBundle \Model \RedirectUri ;
11
- use League \Bundle \OAuth2ServerBundle \Model \Scope ;
9
+ use League \Bundle \OAuth2ServerBundle \ValueObject \Grant ;
10
+ use League \Bundle \OAuth2ServerBundle \ValueObject \RedirectUri ;
11
+ use League \Bundle \OAuth2ServerBundle \ValueObject \Scope ;
12
12
use Symfony \Component \Console \Command \Command ;
13
13
use Symfony \Component \Console \Input \InputArgument ;
14
14
use Symfony \Component \Console \Input \InputInterface ;
Original file line number Diff line number Diff line change 7
7
use League \Bundle \OAuth2ServerBundle \Manager \ClientFilter ;
8
8
use League \Bundle \OAuth2ServerBundle \Manager \ClientManagerInterface ;
9
9
use League \Bundle \OAuth2ServerBundle \Model \AbstractClient ;
10
- use League \Bundle \OAuth2ServerBundle \Model \Grant ;
11
- use League \Bundle \OAuth2ServerBundle \Model \RedirectUri ;
12
- use League \Bundle \OAuth2ServerBundle \Model \Scope ;
10
+ use League \Bundle \OAuth2ServerBundle \ValueObject \Grant ;
11
+ use League \Bundle \OAuth2ServerBundle \ValueObject \RedirectUri ;
12
+ use League \Bundle \OAuth2ServerBundle \ValueObject \Scope ;
13
13
use Symfony \Component \Console \Command \Command ;
14
14
use Symfony \Component \Console \Input \InputInterface ;
15
15
use Symfony \Component \Console \Input \InputOption ;
Original file line number Diff line number Diff line change 5
5
namespace League \Bundle \OAuth2ServerBundle \Command ;
6
6
7
7
use League \Bundle \OAuth2ServerBundle \Manager \ClientManagerInterface ;
8
- use League \Bundle \OAuth2ServerBundle \Model \Grant ;
9
- use League \Bundle \OAuth2ServerBundle \Model \RedirectUri ;
10
- use League \Bundle \OAuth2ServerBundle \Model \Scope ;
8
+ use League \Bundle \OAuth2ServerBundle \ValueObject \Grant ;
9
+ use League \Bundle \OAuth2ServerBundle \ValueObject \RedirectUri ;
10
+ use League \Bundle \OAuth2ServerBundle \ValueObject \Scope ;
11
11
use Symfony \Component \Console \Command \Command ;
12
12
use Symfony \Component \Console \Input \InputArgument ;
13
13
use Symfony \Component \Console \Input \InputInterface ;
Original file line number Diff line number Diff line change 5
5
namespace League \Bundle \OAuth2ServerBundle \Converter ;
6
6
7
7
use League \Bundle \OAuth2ServerBundle \Entity \Scope as ScopeEntity ;
8
- use League \Bundle \OAuth2ServerBundle \Model \Scope as ScopeModel ;
8
+ use League \Bundle \OAuth2ServerBundle \ValueObject \Scope as ScopeModel ;
9
9
use League \OAuth2 \Server \Entities \ScopeEntityInterface ;
10
10
11
11
final class ScopeConverter implements ScopeConverterInterface
Original file line number Diff line number Diff line change 5
5
namespace League \Bundle \OAuth2ServerBundle \Converter ;
6
6
7
7
use League \Bundle \OAuth2ServerBundle \Entity \Scope as ScopeEntity ;
8
- use League \Bundle \OAuth2ServerBundle \Model \Scope as ScopeModel ;
8
+ use League \Bundle \OAuth2ServerBundle \ValueObject \Scope as ScopeModel ;
9
9
use League \OAuth2 \Server \Entities \ScopeEntityInterface ;
10
10
11
11
interface ScopeConverterInterface
Original file line number Diff line number Diff line change 4
4
5
5
namespace League \Bundle \OAuth2ServerBundle \DBAL \Type ;
6
6
7
- use League \Bundle \OAuth2ServerBundle \Model \Grant as GrantModel ;
7
+ use League \Bundle \OAuth2ServerBundle \ValueObject \Grant as GrantModel ;
8
8
9
9
/**
10
10
* @extends ImplodedArray<GrantModel>
Original file line number Diff line number Diff line change 4
4
5
5
namespace League \Bundle \OAuth2ServerBundle \DBAL \Type ;
6
6
7
- use League \Bundle \OAuth2ServerBundle \Model \RedirectUri as RedirectUriModel ;
7
+ use League \Bundle \OAuth2ServerBundle \ValueObject \RedirectUri as RedirectUriModel ;
8
8
9
9
/**
10
10
* @template-extends ImplodedArray<RedirectUriModel>
Original file line number Diff line number Diff line change 4
4
5
5
namespace League \Bundle \OAuth2ServerBundle \DBAL \Type ;
6
6
7
- use League \Bundle \OAuth2ServerBundle \Model \Scope as ScopeModel ;
7
+ use League \Bundle \OAuth2ServerBundle \ValueObject \Scope as ScopeModel ;
8
8
9
9
/**
10
10
* @extends ImplodedArray<ScopeModel>
Original file line number Diff line number Diff line change 16
16
use League \Bundle \OAuth2ServerBundle \Manager \Doctrine \RefreshTokenManager ;
17
17
use League \Bundle \OAuth2ServerBundle \Manager \InMemory \AccessTokenManager as InMemoryAccessTokenManager ;
18
18
use League \Bundle \OAuth2ServerBundle \Manager \ScopeManagerInterface ;
19
- use League \Bundle \OAuth2ServerBundle \Model \Scope as ScopeModel ;
19
+ use League \Bundle \OAuth2ServerBundle \ValueObject \Scope as ScopeModel ;
20
20
use League \Bundle \OAuth2ServerBundle \Persistence \Mapping \Driver ;
21
21
use League \Bundle \OAuth2ServerBundle \Security \Authenticator \OAuth2Authenticator ;
22
22
use League \Bundle \OAuth2ServerBundle \Service \CredentialsRevoker \DoctrineCredentialsRevoker ;
Original file line number Diff line number Diff line change 5
5
namespace League \Bundle \OAuth2ServerBundle \Event ;
6
6
7
7
use League \Bundle \OAuth2ServerBundle \Model \AbstractClient ;
8
- use League \Bundle \OAuth2ServerBundle \Model \Scope ;
8
+ use League \Bundle \OAuth2ServerBundle \ValueObject \Scope ;
9
9
use League \OAuth2 \Server \RequestTypes \AuthorizationRequest ;
10
10
use Symfony \Component \HttpFoundation \Response ;
11
11
use Symfony \Component \Security \Core \User \UserInterface ;
Original file line number Diff line number Diff line change 5
5
namespace League \Bundle \OAuth2ServerBundle \Event ;
6
6
7
7
use League \Bundle \OAuth2ServerBundle \Model \AbstractClient ;
8
- use League \Bundle \OAuth2ServerBundle \Model \Grant ;
9
- use League \Bundle \OAuth2ServerBundle \Model \Scope ;
8
+ use League \Bundle \OAuth2ServerBundle \ValueObject \Grant ;
9
+ use League \Bundle \OAuth2ServerBundle \ValueObject \Scope ;
10
10
use Symfony \Contracts \EventDispatcher \Event ;
11
11
12
12
final class ScopeResolveEvent extends Event
Original file line number Diff line number Diff line change 5
5
namespace League \Bundle \OAuth2ServerBundle \Event ;
6
6
7
7
use League \Bundle \OAuth2ServerBundle \Model \AbstractClient ;
8
- use League \Bundle \OAuth2ServerBundle \Model \Grant ;
8
+ use League \Bundle \OAuth2ServerBundle \ValueObject \Grant ;
9
9
use Symfony \Component \Security \Core \User \UserInterface ;
10
10
use Symfony \Contracts \EventDispatcher \Event ;
11
11
Original file line number Diff line number Diff line change 5
5
namespace League \Bundle \OAuth2ServerBundle \EventListener ;
6
6
7
7
use League \Bundle \OAuth2ServerBundle \Event \PreSaveClientEvent ;
8
- use League \Bundle \OAuth2ServerBundle \Model \Scope ;
8
+ use League \Bundle \OAuth2ServerBundle \ValueObject \Scope ;
9
9
10
10
/**
11
11
* Sets default scopes to the client before being saved by a ClientManager if no scope is specified.
Original file line number Diff line number Diff line change 4
4
5
5
namespace League \Bundle \OAuth2ServerBundle \Manager ;
6
6
7
- use League \Bundle \OAuth2ServerBundle \Model \Grant ;
8
- use League \Bundle \OAuth2ServerBundle \Model \RedirectUri ;
9
- use League \Bundle \OAuth2ServerBundle \Model \Scope ;
7
+ use League \Bundle \OAuth2ServerBundle \ValueObject \Grant ;
8
+ use League \Bundle \OAuth2ServerBundle \ValueObject \RedirectUri ;
9
+ use League \Bundle \OAuth2ServerBundle \ValueObject \Scope ;
10
10
11
11
final class ClientFilter
12
12
{
Original file line number Diff line number Diff line change 9
9
use League \Bundle \OAuth2ServerBundle \Manager \ClientFilter ;
10
10
use League \Bundle \OAuth2ServerBundle \Manager \ClientManagerInterface ;
11
11
use League \Bundle \OAuth2ServerBundle \Model \AbstractClient ;
12
- use League \Bundle \OAuth2ServerBundle \Model \Grant ;
13
- use League \Bundle \OAuth2ServerBundle \Model \RedirectUri ;
14
- use League \Bundle \OAuth2ServerBundle \Model \Scope ;
12
+ use League \Bundle \OAuth2ServerBundle \ValueObject \Grant ;
13
+ use League \Bundle \OAuth2ServerBundle \ValueObject \RedirectUri ;
14
+ use League \Bundle \OAuth2ServerBundle \ValueObject \Scope ;
15
15
use League \Bundle \OAuth2ServerBundle \OAuth2Events ;
16
16
use Symfony \Contracts \EventDispatcher \EventDispatcherInterface ;
17
17
Original file line number Diff line number Diff line change 8
8
use League \Bundle \OAuth2ServerBundle \Manager \ClientFilter ;
9
9
use League \Bundle \OAuth2ServerBundle \Manager \ClientManagerInterface ;
10
10
use League \Bundle \OAuth2ServerBundle \Model \AbstractClient ;
11
- use League \Bundle \OAuth2ServerBundle \Model \Grant ;
12
- use League \Bundle \OAuth2ServerBundle \Model \RedirectUri ;
13
- use League \Bundle \OAuth2ServerBundle \Model \Scope ;
11
+ use League \Bundle \OAuth2ServerBundle \ValueObject \Grant ;
12
+ use League \Bundle \OAuth2ServerBundle \ValueObject \RedirectUri ;
13
+ use League \Bundle \OAuth2ServerBundle \ValueObject \Scope ;
14
14
use League \Bundle \OAuth2ServerBundle \OAuth2Events ;
15
15
use Symfony \Contracts \EventDispatcher \EventDispatcherInterface ;
16
16
Original file line number Diff line number Diff line change 5
5
namespace League \Bundle \OAuth2ServerBundle \Manager \InMemory ;
6
6
7
7
use League \Bundle \OAuth2ServerBundle \Manager \ScopeManagerInterface ;
8
- use League \Bundle \OAuth2ServerBundle \Model \Scope ;
8
+ use League \Bundle \OAuth2ServerBundle \ValueObject \Scope ;
9
9
10
10
final class ScopeManager implements ScopeManagerInterface
11
11
{
Original file line number Diff line number Diff line change 4
4
5
5
namespace League \Bundle \OAuth2ServerBundle \Manager ;
6
6
7
- use League \Bundle \OAuth2ServerBundle \Model \Scope ;
7
+ use League \Bundle \OAuth2ServerBundle \ValueObject \Scope ;
8
8
9
9
interface ScopeManagerInterface
10
10
{
Original file line number Diff line number Diff line change 4
4
5
5
namespace League \Bundle \OAuth2ServerBundle \Model ;
6
6
7
+ use League \Bundle \OAuth2ServerBundle \ValueObject \Grant ;
8
+ use League \Bundle \OAuth2ServerBundle \ValueObject \RedirectUri ;
9
+ use League \Bundle \OAuth2ServerBundle \ValueObject \Scope ;
10
+
7
11
/**
8
12
* @psalm-consistent-constructor
9
13
*
Original file line number Diff line number Diff line change 4
4
5
5
namespace League \Bundle \OAuth2ServerBundle \Model ;
6
6
7
+ use League \Bundle \OAuth2ServerBundle \ValueObject \Scope ;
8
+
7
9
class AccessToken
8
10
{
9
11
/**
Original file line number Diff line number Diff line change 4
4
5
5
namespace League \Bundle \OAuth2ServerBundle \Model ;
6
6
7
+ use League \Bundle \OAuth2ServerBundle \ValueObject \Scope ;
8
+
7
9
class AuthorizationCode
8
10
{
9
11
/**
Original file line number Diff line number Diff line change 11
11
use League \Bundle \OAuth2ServerBundle \Model \AccessToken ;
12
12
use League \Bundle \OAuth2ServerBundle \Model \AuthorizationCode ;
13
13
use League \Bundle \OAuth2ServerBundle \Model \Client ;
14
+ use League \Bundle \OAuth2ServerBundle \ValueObject \Grant ;
15
+ use League \Bundle \OAuth2ServerBundle \ValueObject \RedirectUri ;
14
16
use League \Bundle \OAuth2ServerBundle \Model \RefreshToken ;
17
+ use League \Bundle \OAuth2ServerBundle \ValueObject \Scope ;
15
18
16
19
/**
17
20
* Metadata driver that enables mapping dynamically accordingly to container configuration.
Original file line number Diff line number Diff line change 9
9
use League \Bundle \OAuth2ServerBundle \Manager \ClientManagerInterface ;
10
10
use League \Bundle \OAuth2ServerBundle \Manager \ScopeManagerInterface ;
11
11
use League \Bundle \OAuth2ServerBundle \Model \AbstractClient ;
12
- use League \Bundle \OAuth2ServerBundle \Model \Grant ;
13
- use League \Bundle \OAuth2ServerBundle \Model \Scope ;
12
+ use League \Bundle \OAuth2ServerBundle \ValueObject \Grant ;
13
+ use League \Bundle \OAuth2ServerBundle \ValueObject \Scope ;
14
14
use League \Bundle \OAuth2ServerBundle \OAuth2Events ;
15
15
use League \OAuth2 \Server \Entities \ClientEntityInterface ;
16
16
use League \OAuth2 \Server \Entities \ScopeEntityInterface ;
Original file line number Diff line number Diff line change 8
8
use League \Bundle \OAuth2ServerBundle \Event \UserResolveEvent ;
9
9
use League \Bundle \OAuth2ServerBundle \Manager \ClientManagerInterface ;
10
10
use League \Bundle \OAuth2ServerBundle \Model \AbstractClient ;
11
- use League \Bundle \OAuth2ServerBundle \Model \Grant ;
11
+ use League \Bundle \OAuth2ServerBundle \ValueObject \Grant ;
12
12
use League \Bundle \OAuth2ServerBundle \OAuth2Events ;
13
13
use League \OAuth2 \Server \Entities \ClientEntityInterface ;
14
14
use League \OAuth2 \Server \Entities \UserEntityInterface ;
Original file line number Diff line number Diff line change 2
2
3
3
declare (strict_types=1 );
4
4
5
- namespace League \Bundle \OAuth2ServerBundle \Model ;
5
+ namespace League \Bundle \OAuth2ServerBundle \ValueObject ;
6
6
7
7
/**
8
8
* @psalm-immutable
Original file line number Diff line number Diff line change 2
2
3
3
declare (strict_types=1 );
4
4
5
- namespace League \Bundle \OAuth2ServerBundle \Model ;
5
+ namespace League \Bundle \OAuth2ServerBundle \ValueObject ;
6
6
7
7
/**
8
8
* @psalm-immutable
Original file line number Diff line number Diff line change 2
2
3
3
declare (strict_types=1 );
4
4
5
- namespace League \Bundle \OAuth2ServerBundle \Model ;
5
+ namespace League \Bundle \OAuth2ServerBundle \ValueObject ;
6
6
7
7
/**
8
8
* @psalm-immutable
Original file line number Diff line number Diff line change 6
6
7
7
use League \Bundle \OAuth2ServerBundle \Manager \ClientManagerInterface ;
8
8
use League \Bundle \OAuth2ServerBundle \Model \Client ;
9
- use League \Bundle \OAuth2ServerBundle \Model \Scope ;
9
+ use League \Bundle \OAuth2ServerBundle \ValueObject \Scope ;
10
10
use Symfony \Component \Console \Tester \CommandTester ;
11
11
12
12
final class CreateClientCommandTest extends AbstractAcceptanceTest
Original file line number Diff line number Diff line change 9
9
use League \Bundle \OAuth2ServerBundle \Model \AccessToken ;
10
10
use League \Bundle \OAuth2ServerBundle \Model \Client ;
11
11
use League \Bundle \OAuth2ServerBundle \Model \RefreshToken ;
12
- use League \Bundle \OAuth2ServerBundle \Model \Scope ;
12
+ use League \Bundle \OAuth2ServerBundle \ValueObject \Scope ;
13
13
use League \Bundle \OAuth2ServerBundle \Tests \Fixtures \FixtureFactory ;
14
14
use Symfony \Contracts \EventDispatcher \EventDispatcherInterface ;
15
15
Original file line number Diff line number Diff line change 6
6
7
7
use League \Bundle \OAuth2ServerBundle \Manager \InMemory \ClientManager as InMemoryClientManager ;
8
8
use League \Bundle \OAuth2ServerBundle \Model \Client ;
9
- use League \Bundle \OAuth2ServerBundle \Model \Scope ;
9
+ use League \Bundle \OAuth2ServerBundle \ValueObject \Scope ;
10
10
use League \Bundle \OAuth2ServerBundle \Tests \Acceptance \AbstractAcceptanceTest ;
11
11
use League \Bundle \OAuth2ServerBundle \Tests \Fixtures \FixtureFactory ;
12
12
use Symfony \Contracts \EventDispatcher \EventDispatcherInterface ;
Original file line number Diff line number Diff line change 6
6
7
7
use League \Bundle \OAuth2ServerBundle \Manager \ClientManagerInterface ;
8
8
use League \Bundle \OAuth2ServerBundle \Model \Client ;
9
- use League \Bundle \OAuth2ServerBundle \Model \RedirectUri ;
10
- use League \Bundle \OAuth2ServerBundle \Model \Scope ;
9
+ use League \Bundle \OAuth2ServerBundle \ValueObject \RedirectUri ;
10
+ use League \Bundle \OAuth2ServerBundle \ValueObject \Scope ;
11
11
use Symfony \Component \Console \Command \Command ;
12
12
use Symfony \Component \Console \Tester \CommandTester ;
13
13
Original file line number Diff line number Diff line change 6
6
7
7
use League \Bundle \OAuth2ServerBundle \Manager \ClientManagerInterface ;
8
8
use League \Bundle \OAuth2ServerBundle \Model \Client ;
9
- use League \Bundle \OAuth2ServerBundle \Model \Grant ;
10
- use League \Bundle \OAuth2ServerBundle \Model \RedirectUri ;
11
- use League \Bundle \OAuth2ServerBundle \Model \Scope ;
9
+ use League \Bundle \OAuth2ServerBundle \ValueObject \Grant ;
10
+ use League \Bundle \OAuth2ServerBundle \ValueObject \RedirectUri ;
11
+ use League \Bundle \OAuth2ServerBundle \ValueObject \Scope ;
12
12
use Symfony \Component \Console \Tester \CommandTester ;
13
13
14
14
final class UpdateClientCommandTest extends AbstractAcceptanceTest
Original file line number Diff line number Diff line change 12
12
use League \Bundle \OAuth2ServerBundle \Model \AccessToken ;
13
13
use League \Bundle \OAuth2ServerBundle \Model \AuthorizationCode ;
14
14
use League \Bundle \OAuth2ServerBundle \Model \Client ;
15
- use League \Bundle \OAuth2ServerBundle \Model \Grant ;
16
- use League \Bundle \OAuth2ServerBundle \Model \RedirectUri ;
15
+ use League \Bundle \OAuth2ServerBundle \ValueObject \Grant ;
16
+ use League \Bundle \OAuth2ServerBundle \ValueObject \RedirectUri ;
17
17
use League \Bundle \OAuth2ServerBundle \Model \RefreshToken ;
18
- use League \Bundle \OAuth2ServerBundle \Model \Scope ;
18
+ use League \Bundle \OAuth2ServerBundle \ValueObject \Scope ;
19
19
20
20
/**
21
21
* Development hints:
You can’t perform that action at this time.
0 commit comments