From d9b8ba85fb4a83cbdf4847cd63e0d2e255fdd9ab Mon Sep 17 00:00:00 2001 From: oscarotero Date: Mon, 27 Feb 2017 20:20:25 +0100 Subject: [PATCH] minor change --- src/AuraRouter.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/AuraRouter.php b/src/AuraRouter.php index f0beecd..daa688e 100644 --- a/src/AuraRouter.php +++ b/src/AuraRouter.php @@ -2,6 +2,8 @@ namespace Middlewares; +use Middlewares\Utils\CallableHandler; +use Middlewares\Utils\Factory; use Middlewares\Utils\CallableResolver\CallableResolverInterface; use Middlewares\Utils\CallableResolver\ContainerResolver; use Middlewares\Utils\CallableResolver\ReflectionResolver; @@ -83,13 +85,13 @@ public function process(ServerRequestInterface $request, DelegateInterface $dele switch ($failedRoute->failedRule) { case 'Aura\Router\Rule\Allows': - return Utils\Factory::createResponse(405); // 405 METHOD NOT ALLOWED + return Factory::createResponse(405); // 405 METHOD NOT ALLOWED case 'Aura\Router\Rule\Accepts': - return Utils\Factory::createResponse(406); // 406 NOT ACCEPTABLE + return Factory::createResponse(406); // 406 NOT ACCEPTABLE default: - return Utils\Factory::createResponse(404); // 404 NOT FOUND + return Factory::createResponse(404); // 404 NOT FOUND } } @@ -101,7 +103,7 @@ public function process(ServerRequestInterface $request, DelegateInterface $dele $callable = $this->getResolver()->resolve($route->handler, $arguments); - return Utils\CallableHandler::execute($callable, $arguments); + return CallableHandler::execute($callable, $arguments); } /**