1 | <?php |
||
14 | class ApplicationRenderer |
||
15 | { |
||
16 | protected $storage; |
||
17 | protected $request; |
||
18 | protected $application; |
||
19 | |||
20 | /** |
||
21 | * ApplicationRenderer constructor. |
||
22 | * @param Application $application |
||
23 | * @param Storage $storage |
||
24 | * @param Request $request |
||
25 | */ |
||
26 | public function __construct(Application $application, Storage $storage, Request $request) |
||
32 | |||
33 | /** |
||
34 | * Loop through all application components and render them |
||
35 | * @param array $applicationComponents |
||
36 | */ |
||
37 | public function renderApplicationComponents($applicationComponents) |
||
43 | |||
44 | /** |
||
45 | * Loop through all (matched) sitemap components and render them |
||
46 | * @param array $matchedSitemapItems |
||
47 | * @throws \Exception |
||
48 | */ |
||
49 | public function renderSitemapComponents($matchedSitemapItems) |
||
62 | |||
63 | /** |
||
64 | * Set the default caching of pages to 2 days |
||
65 | * @throws \Exception |
||
66 | */ |
||
67 | public function setCachingHeaders() |
||
77 | } |