Continue with getter/setter cleanup

This commit is contained in:
Dennis Eichhorn 2023-05-30 15:44:24 +02:00
parent a304002712
commit a4d7d58ba9
2 changed files with 2 additions and 2 deletions

View File

@ -173,7 +173,7 @@ final class Application
$head = new Head(); $head = new Head();
$pageView->setData('unitId', $this->app->unitId); $pageView->setData('unitId', $this->app->unitId);
$pageView->setData('head', $head); $pageView->data['head'] = $head;
$response->set('Content', $pageView); $response->set('Content', $pageView);
/* App only allows GET */ /* App only allows GET */

View File

@ -16,7 +16,7 @@ declare(strict_types=1);
use phpOMS\Uri\UriFactory; use phpOMS\Uri\UriFactory;
/** @var phpOMS\Model\Html\Head $head */ /** @var phpOMS\Model\Html\Head $head */
$head = $this->getData('head'); $head = $this->head;
/** @var array $dispatch */ /** @var array $dispatch */
$dispatch = $this->getData('dispatch') ?? []; $dispatch = $this->getData('dispatch') ?? [];