From 97f5638423e08c1c7c748f989d581cd2308910e7 Mon Sep 17 00:00:00 2001 From: Mateusz Tymek Date: Mon, 22 Jun 2015 19:29:02 +0200 Subject: [PATCH] pass path instead of full URI object --- src/Middleware/FastRouteMiddleware.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Middleware/FastRouteMiddleware.php b/src/Middleware/FastRouteMiddleware.php index 74f6cac..0924e1d 100644 --- a/src/Middleware/FastRouteMiddleware.php +++ b/src/Middleware/FastRouteMiddleware.php @@ -40,7 +40,10 @@ public function getId() */ public function execute(Harmony $harmony) { - $routeInfo = $this->dispatcher->dispatch($harmony->getRequest()->getMethod(), $harmony->getRequest()->getUri()); + $routeInfo = $this->dispatcher->dispatch( + $harmony->getRequest()->getMethod(), + $harmony->getRequest()->getUri()->getPath() + ); switch ($routeInfo[0]) { case Dispatcher::NOT_FOUND: