Skip to content

Commit 6eecb6d

Browse files
Rename EventDispatchable to EventDispatcherAware
Signed-off-by: Eugene Borovov <[email protected]>
1 parent caa2e00 commit 6eecb6d

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

src/AuthorizationServer.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111

1212
use DateInterval;
1313
use 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;
1616
use League\OAuth2\Server\Exception\OAuthServerException;
1717
use League\OAuth2\Server\Grant\GrantTypeInterface;
1818
use League\OAuth2\Server\Repositories\AccessTokenRepositoryInterface;
@@ -25,9 +25,9 @@
2525
use Psr\Http\Message\ResponseInterface;
2626
use 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[]

src/Events/EventDispatchableInterface.php renamed to src/Events/EventDispatcherAwareInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Psr\EventDispatcher\EventDispatcherInterface;
66

7-
interface EventDispatchableInterface
7+
interface EventDispatcherAwareInterface
88
{
99
public function useEventDispatcher(?EventDispatcherInterface $dispatcher): void;
1010

src/Events/EventDispatchableTrait.php renamed to src/Events/EventDispatcherAwareTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Psr\EventDispatcher\EventDispatcherInterface;
66

7-
trait EventDispatchableTrait
7+
trait EventDispatcherAwareTrait
88
{
99
/** @var EventDispatcherInterface|null */
1010
protected $eventDispatcher;

src/Grant/AbstractGrant.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
use League\OAuth2\Server\Entities\RefreshTokenEntityInterface;
2323
use League\OAuth2\Server\Entities\ScopeEntityInterface;
2424
use League\OAuth2\Server\Events\ClientAuthenticationFailed;
25-
use League\OAuth2\Server\Events\EventDispatchableTrait;
25+
use League\OAuth2\Server\Events\EventDispatcherAwareTrait;
2626
use League\OAuth2\Server\Exception\OAuthServerException;
2727
use League\OAuth2\Server\Exception\UniqueTokenIdentifierConstraintViolationException;
2828
use League\OAuth2\Server\RedirectUriValidators\RedirectUriValidator;
@@ -42,7 +42,7 @@
4242
*/
4343
abstract class AbstractGrant implements GrantTypeInterface
4444
{
45-
use EventDispatchableTrait, CryptTrait;
45+
use EventDispatcherAwareTrait, CryptTrait;
4646

4747
const SCOPE_DELIMITER_STRING = ' ';
4848

src/Grant/GrantTypeInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use DateInterval;
1515
use Defuse\Crypto\Key;
1616
use League\OAuth2\Server\CryptKey;
17-
use League\OAuth2\Server\Events\EventDispatchableInterface;
17+
use League\OAuth2\Server\Events\EventDispatcherAwareInterface;
1818
use League\OAuth2\Server\Repositories\AccessTokenRepositoryInterface;
1919
use League\OAuth2\Server\Repositories\ClientRepositoryInterface;
2020
use League\OAuth2\Server\Repositories\ScopeRepositoryInterface;
@@ -25,7 +25,7 @@
2525
/**
2626
* Grant type interface.
2727
*/
28-
interface GrantTypeInterface extends EventDispatchableInterface
28+
interface GrantTypeInterface extends EventDispatcherAwareInterface
2929
{
3030
/**
3131
* Set refresh token TTL.

0 commit comments

Comments
 (0)