From c184fc597361a551a6dbab00c94cf64efa5e2272 Mon Sep 17 00:00:00 2001 From: Thomas Tanghus Date: Mon, 10 Mar 2014 22:54:56 +0100 Subject: [PATCH] Remove wrong argument to HttpMiddleware ctor --- lib/dispatcher.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dispatcher.php b/lib/dispatcher.php index 4cac22bd..9c7c4062 100644 --- a/lib/dispatcher.php +++ b/lib/dispatcher.php @@ -38,7 +38,7 @@ class Dispatcher extends MainApp { public function __construct($params) { parent::__construct('contacts', $params); $this->container = $this->getContainer(); - $this->container->registerMiddleware(new HttpMiddleware($this->container)); + $this->container->registerMiddleware(new HttpMiddleware()); $this->app = new App($this->container->query('API')->getUserId()); $this->registerServices(); }