Fix connection

This commit is contained in:
Ruben 2016-10-05 21:52:11 +02:00
parent a06cce6b54
commit 8571f6924c
1 changed files with 1 additions and 1 deletions

View File

@ -167,6 +167,6 @@ $app->get('/api/protected_resource', function() use ($app){
$app->mount('/', new EmotionHero\Api\ScoreControllerProvider()); $app->mount('/', new EmotionHero\Api\ScoreControllerProvider());
// middlewares // 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(); $appStack->handle(Request::createFromGlobals())->send();