File tree Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 1111
1212use DateInterval ;
1313use Defuse \Crypto \Key ;
14- use League \OAuth2 \Server \Events \EventDispatchableInterface ;
15- use League \OAuth2 \Server \Events \EventDispatchableTrait ;
14+ use League \OAuth2 \Server \Events \EventDispatcherAwareInterface ;
15+ use League \OAuth2 \Server \Events \EventDispatcherAwareTrait ;
1616use League \OAuth2 \Server \Exception \OAuthServerException ;
1717use League \OAuth2 \Server \Grant \GrantTypeInterface ;
1818use League \OAuth2 \Server \Repositories \AccessTokenRepositoryInterface ;
2525use Psr \Http \Message \ResponseInterface ;
2626use Psr \Http \Message \ServerRequestInterface ;
2727
28- class AuthorizationServer implements EventDispatchableInterface
28+ class AuthorizationServer implements EventDispatcherAwareInterface
2929{
30- use EventDispatchableTrait ;
30+ use EventDispatcherAwareTrait ;
3131
3232 /**
3333 * @var GrantTypeInterface[]
Original file line number Diff line number Diff line change 44
55use Psr \EventDispatcher \EventDispatcherInterface ;
66
7- interface EventDispatchableInterface
7+ interface EventDispatcherAwareInterface
88{
99 public function useEventDispatcher (?EventDispatcherInterface $ dispatcher ): void ;
1010
Original file line number Diff line number Diff line change 44
55use Psr \EventDispatcher \EventDispatcherInterface ;
66
7- trait EventDispatchableTrait
7+ trait EventDispatcherAwareTrait
88{
99 /** @var EventDispatcherInterface|null */
1010 protected $ eventDispatcher ;
Original file line number Diff line number Diff line change 2222use League \OAuth2 \Server \Entities \RefreshTokenEntityInterface ;
2323use League \OAuth2 \Server \Entities \ScopeEntityInterface ;
2424use League \OAuth2 \Server \Events \ClientAuthenticationFailed ;
25- use League \OAuth2 \Server \Events \EventDispatchableTrait ;
25+ use League \OAuth2 \Server \Events \EventDispatcherAwareTrait ;
2626use League \OAuth2 \Server \Exception \OAuthServerException ;
2727use League \OAuth2 \Server \Exception \UniqueTokenIdentifierConstraintViolationException ;
2828use League \OAuth2 \Server \RedirectUriValidators \RedirectUriValidator ;
4242 */
4343abstract class AbstractGrant implements GrantTypeInterface
4444{
45- use EventDispatchableTrait , CryptTrait;
45+ use EventDispatcherAwareTrait , CryptTrait;
4646
4747 const SCOPE_DELIMITER_STRING = ' ' ;
4848
Original file line number Diff line number Diff line change 1414use DateInterval ;
1515use Defuse \Crypto \Key ;
1616use League \OAuth2 \Server \CryptKey ;
17- use League \OAuth2 \Server \Events \EventDispatchableInterface ;
17+ use League \OAuth2 \Server \Events \EventDispatcherAwareInterface ;
1818use League \OAuth2 \Server \Repositories \AccessTokenRepositoryInterface ;
1919use League \OAuth2 \Server \Repositories \ClientRepositoryInterface ;
2020use League \OAuth2 \Server \Repositories \ScopeRepositoryInterface ;
2525/**
2626 * Grant type interface.
2727 */
28- interface GrantTypeInterface extends EventDispatchableInterface
28+ interface GrantTypeInterface extends EventDispatcherAwareInterface
2929{
3030 /**
3131 * Set refresh token TTL.
You can’t perform that action at this time.
0 commit comments