Fix connection

This commit is contained in:
Ruben 2016-10-05 21:52:11 +02:00
parent a06cce6b54
commit 8571f6924c

View file

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