mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-15 17:56:14 +05:30
Fixed namespace includes
This commit is contained in:
parent
bed6c3287e
commit
ae7b7e9aa9
@ -13,7 +13,6 @@ namespace League\OAuth2\Server;
|
|||||||
|
|
||||||
use League\OAuth2\Server\Grant\GrantTypeInterface;
|
use League\OAuth2\Server\Grant\GrantTypeInterface;
|
||||||
use League\OAuth2\Server\TokenType\Bearer;
|
use League\OAuth2\Server\TokenType\Bearer;
|
||||||
use Symfony\Component\HttpFoundation\Request;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* OAuth 2.0 authorization server class
|
* OAuth 2.0 authorization server class
|
||||||
|
@ -12,8 +12,7 @@
|
|||||||
namespace League\OAuth2\Server\Entity;
|
namespace League\OAuth2\Server\Entity;
|
||||||
|
|
||||||
use League\OAuth2\Server\AbstractServer;
|
use League\OAuth2\Server\AbstractServer;
|
||||||
use League\OAuth2\Server\Event;
|
use League\OAuth2\Server\Event\SessionOwnerEvent;
|
||||||
use Symfony\Component\HttpFoundation\ParameterBag;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Session entity grant
|
* Session entity grant
|
||||||
@ -229,7 +228,7 @@ class SessionEntity
|
|||||||
$this->ownerType = $type;
|
$this->ownerType = $type;
|
||||||
$this->ownerId = $id;
|
$this->ownerId = $id;
|
||||||
|
|
||||||
$this->server->getEventEmitter()->emit(new Event\SessionOwnerEvent($this));
|
$this->server->getEventEmitter()->emit(new SessionOwnerEvent($this));
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
namespace League\OAuth2\Server\Exception;
|
namespace League\OAuth2\Server\Exception;
|
||||||
|
|
||||||
|
use League\OAuth2\Server\Util\RedirectUri;
|
||||||
use Symfony\Component\HttpFoundation\Request;
|
use Symfony\Component\HttpFoundation\Request;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -58,7 +59,7 @@ class OAuthException extends \Exception
|
|||||||
*/
|
*/
|
||||||
public function getRedirectUri()
|
public function getRedirectUri()
|
||||||
{
|
{
|
||||||
return \League\OAuth2\Server\Util\RedirectUri::make(
|
return RedirectUri::make(
|
||||||
$this->redirectUri,
|
$this->redirectUri,
|
||||||
[
|
[
|
||||||
'error' => $this->errorType,
|
'error' => $this->errorType,
|
||||||
|
@ -17,7 +17,6 @@ use League\OAuth2\Server\Storage\ClientInterface;
|
|||||||
use League\OAuth2\Server\Storage\ScopeInterface;
|
use League\OAuth2\Server\Storage\ScopeInterface;
|
||||||
use League\OAuth2\Server\Storage\SessionInterface;
|
use League\OAuth2\Server\Storage\SessionInterface;
|
||||||
use League\OAuth2\Server\TokenType\Bearer;
|
use League\OAuth2\Server\TokenType\Bearer;
|
||||||
use Symfony\Component\HttpFoundation\Request;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* OAuth 2.0 Resource Server
|
* OAuth 2.0 Resource Server
|
||||||
|
Loading…
Reference in New Issue
Block a user