Removed duplicate routing setup code

This commit is contained in:
Hugo Vacher 2015-06-08 15:50:55 -04:00
parent c174b6fc65
commit 16685ccde4

View File

@ -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();