Solved some small bugs

This commit is contained in:
Kevin Frantz 2019-02-16 18:02:28 +01:00
parent 7dae633ec7
commit 6083c51c2e
3 changed files with 9 additions and 3 deletions

View File

@ -29,7 +29,8 @@ final class DefaultController extends AbstractController
$requestedActionService->setLayer(LayerType::SOURCE);
$requestedActionService->getRequestedEntity()->setSlug(ImpressumFixtureSource::SLUG);
$view = $mvcRoutineService->process();
$this->handleView($view);
return $this->handleView($view);
}
/**

View File

@ -31,9 +31,9 @@ final class MVCRoutineService implements MVCRoutineServiceInterface
{
switch (gettype($result)) {
case 'object':
return ['entity' => $this->result];
return ['entity' => $result];
case 'array':
return ['enitits' => $this->result];
return ['entities' => $result];
case 'null':
return [];
}

View File

@ -0,0 +1,5 @@
{% set source = entity %}
{% extends "frames/default.html.twig" %}
{% block content %}
{{ entity.text }}
{% endblock %}