mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-23 05:29:52 +05:30
Removed duplicate routing setup code
This commit is contained in:
parent
c174b6fc65
commit
16685ccde4
@ -9,11 +9,6 @@ use RelationalExample\Storage;
|
|||||||
|
|
||||||
include __DIR__.'/vendor/autoload.php';
|
include __DIR__.'/vendor/autoload.php';
|
||||||
|
|
||||||
// Routing setup
|
|
||||||
$request = (new Request())->createFromGlobals();
|
|
||||||
$router = new \Orno\Route\RouteCollection();
|
|
||||||
$router->setStrategy(\Orno\Route\RouteStrategyInterface::RESTFUL_STRATEGY);
|
|
||||||
|
|
||||||
// Set up the OAuth 2.0 resource server
|
// Set up the OAuth 2.0 resource server
|
||||||
$sessionStorage = new Storage\SessionStorage();
|
$sessionStorage = new Storage\SessionStorage();
|
||||||
$accessTokenStorage = new Storage\AccessTokenStorage();
|
$accessTokenStorage = new Storage\AccessTokenStorage();
|
||||||
|
Loading…
Reference in New Issue
Block a user