From 8571f6924c9ee6bf8d25f093eee50584303d3d5c Mon Sep 17 00:00:00 2001 From: Ruben Date: Wed, 5 Oct 2016 21:52:11 +0200 Subject: [PATCH] Fix connection --- www/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/index.php b/www/index.php index 781d592..2c24e17 100644 --- a/www/index.php +++ b/www/index.php @@ -167,6 +167,6 @@ $app->get('/api/protected_resource', function() use ($app){ $app->mount('/', new EmotionHero\Api\ScoreControllerProvider()); // middlewares -$appStack = new EmotionHero\Api\ThrottleMiddleware($app, ['pdo'=>$eh->getEm()->getConnection()] ); +$appStack = new EmotionHero\Api\ThrottleMiddleware($app, ['pdo'=>$eh->getEm()->getConnection()->getWrappedConnection()] ); $appStack->handle(Request::createFromGlobals())->send(); \ No newline at end of file