1 | <?php |
||
16 | class HomeAction |
||
17 | { |
||
18 | /** @var Template */ |
||
19 | private $template; |
||
20 | |||
21 | /** @var PageService */ |
||
22 | private $pageService; |
||
23 | |||
24 | /** |
||
25 | * HomeAction constructor. |
||
26 | * |
||
27 | * @param Template $template |
||
28 | * @param PageService $pageService |
||
29 | */ |
||
30 | public function __construct(Template $template, PageService $pageService) |
||
35 | |||
36 | /** |
||
37 | * Get homepage to display body or |
||
38 | * need to get homepage from Pages package at least for SEO tags. |
||
39 | * |
||
40 | * @param Request $request |
||
41 | * @param Response $response |
||
42 | * @param callable|null $next |
||
43 | * |
||
44 | * @throws \Exception |
||
45 | * |
||
46 | * @return HtmlResponse |
||
47 | */ |
||
48 | public function __invoke(Request $request, Response $response, callable $next = null): HtmlResponse |
||
57 | } |
||
58 |