diff --git a/src/Server/AuthorizationServer.php b/src/Server/AuthorizationServer.php index 9e84360..a5d8637 100644 --- a/src/Server/AuthorizationServer.php +++ b/src/Server/AuthorizationServer.php @@ -39,7 +39,7 @@ * @author Michaël Gallego * @licence MIT */ -class AuthorizationServer implements EventManagerAwareInterface +class AuthorizationServer implements AuthorizationServerInterface, EventManagerAwareInterface { use EventManagerAwareTrait; diff --git a/src/Server/AuthorizationServerInterface.php b/src/Server/AuthorizationServerInterface.php new file mode 100644 index 0000000..ce80018 --- /dev/null +++ b/src/Server/AuthorizationServerInterface.php @@ -0,0 +1,69 @@ + @@ -27,14 +27,14 @@ trait AuthorizationServerAwareTrait { /** - * @var AuthorizationServer + * @var AuthorizationServerInterface */ protected $authorizationServer; /** * {@inheritDoc} */ - public function setAuthorizationServer(AuthorizationServer $authorizationServer) + public function setAuthorizationServer(AuthorizationServerInterface $authorizationServer) { $this->authorizationServer = $authorizationServer; } diff --git a/src/Server/ResourceServer.php b/src/Server/ResourceServer.php index 17f1630..b19a2a8 100644 --- a/src/Server/ResourceServer.php +++ b/src/Server/ResourceServer.php @@ -33,7 +33,7 @@ * @author Michaël Gallego * @licence MIT */ -class ResourceServer +class ResourceServer implements ResourceServerInterface { /** * @var TokenService diff --git a/src/Server/ResourceServerInterface.php b/src/Server/ResourceServerInterface.php new file mode 100644 index 0000000..1adbd42 --- /dev/null +++ b/src/Server/ResourceServerInterface.php @@ -0,0 +1,43 @@ +