1 | <?php |
||
19 | class SingleBlogEntryAction |
||
20 | { |
||
21 | /** |
||
22 | * Template renderer |
||
23 | * |
||
24 | * @var TemplateRendererInterface |
||
25 | */ |
||
26 | private $templateRenderer; |
||
27 | |||
28 | /** |
||
29 | * Content creator |
||
30 | * |
||
31 | * @var ContentCreator |
||
32 | */ |
||
33 | private $contentCreator; |
||
34 | |||
35 | /** |
||
36 | * Markdown component parser |
||
37 | * |
||
38 | * @var MarkdownDocumentParser |
||
39 | */ |
||
40 | private $markdownDocumentParser; |
||
41 | |||
42 | /** |
||
43 | * Markdown cms config |
||
44 | * |
||
45 | * @var array |
||
46 | */ |
||
47 | private $markdownCmsConfig; |
||
48 | |||
49 | /** |
||
50 | * Constructor |
||
51 | * |
||
52 | * @param TemplateRendererInterface $templateRenderer |
||
53 | * @param ContentCreator $contentCreator |
||
54 | * @param MarkdownDocumentParser $markdownDocumentParser |
||
55 | * @param array $markdownCmsConfig |
||
56 | */ |
||
57 | public function __construct(TemplateRendererInterface $templateRenderer, ContentCreator $contentCreator, |
||
65 | |||
66 | public function __invoke(ServerRequestInterface $request, ResponseInterface $response, callable $next = null) |
||
89 | |||
90 | /** |
||
91 | * Get template renderer |
||
92 | * |
||
93 | * @return TemplateRendererInterface |
||
94 | */ |
||
95 | public function getTemplateRenderer() : TemplateRendererInterface |
||
99 | |||
100 | /** |
||
101 | * Get content creator |
||
102 | * |
||
103 | * @return ContentCreator |
||
104 | */ |
||
105 | public function getContentCreator() : ContentCreator |
||
109 | |||
110 | /** |
||
111 | * Get markdown document parser |
||
112 | * |
||
113 | * @return MarkdownDocumentParser |
||
114 | */ |
||
115 | public function getMarkdownDocumentParser() : MarkdownDocumentParser |
||
119 | |||
120 | /** |
||
121 | * Get markdown cms config |
||
122 | * |
||
123 | * @return array |
||
124 | */ |
||
125 | public function getMarkdownCmsConfig() : array |
||
129 | |||
130 | } |