Fix interface controller
This commit is contained in:
parent
da3a9bb83b
commit
3bbaa822c1
1 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ class InterfaceControllerProvider implements ControllerProviderInterface
|
|||
$controllers->get('/images', function (Application $app) {
|
||||
|
||||
$getEmoBlocks = function($emotion, $feature, $steps = 6) use($em) {
|
||||
$hitRepo = $this->_em->getEm()->getRepository(EmotionHero\Models\Hit::class);
|
||||
$hitRepo = $this->_eh->getEm()->getRepository(EmotionHero\Models\Hit::class);
|
||||
$blocks = [];
|
||||
foreach(range(0, 100, 100/($steps-1)) as $i) {
|
||||
/* @var $hitRepo EmotionHero\Models\HitRepository */
|
||||
|
@ -61,7 +61,7 @@ class InterfaceControllerProvider implements ControllerProviderInterface
|
|||
return $app['serializer']->serialize($output, 'json');
|
||||
});
|
||||
|
||||
|
||||
|
||||
return $controllers;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue