mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2024-12-04 23:17:19 +01:00
Solved some small bugs
This commit is contained in:
parent
7dae633ec7
commit
6083c51c2e
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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 [];
|
||||
}
|
||||
|
@ -0,0 +1,5 @@
|
||||
{% set source = entity %}
|
||||
{% extends "frames/default.html.twig" %}
|
||||
{% block content %}
|
||||
{{ entity.text }}
|
||||
{% endblock %}
|
Loading…
Reference in New Issue
Block a user