| 1 | <?php |
||
| 16 | class PageAction |
||
| 17 | { |
||
| 18 | /** @var Template */ |
||
| 19 | private $template; |
||
| 20 | |||
| 21 | /** @var PageService $pageService */ |
||
| 22 | private $pageService; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * PageAction constructor. |
||
| 26 | * |
||
| 27 | * @param Template $template |
||
| 28 | * @param PageService $pageService |
||
| 29 | */ |
||
| 30 | public function __construct(Template $template, PageService $pageService) |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Executed when action is invoked. |
||
| 38 | * |
||
| 39 | * @param Request $request |
||
| 40 | * @param Response $response |
||
| 41 | * @param callable|null $next |
||
| 42 | * |
||
| 43 | * @throws \Exception |
||
| 44 | * |
||
| 45 | * @return HtmlResponse |
||
| 46 | */ |
||
| 47 | public function __invoke( |
||
| 64 | } |
||
| 65 |