Fix connection
This commit is contained in:
parent
a06cce6b54
commit
8571f6924c
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
Loading…
Reference in a new issue