@@ 18-30 (lines=13) @@ | ||
15 | use Zend\Expressive\Template\TemplateRendererInterface; |
|
16 | use Jolicht\MarkdownCms\ContentType\ContentCreator; |
|
17 | ||
18 | class BlogOverviewActionFactory implements FactoryInterface |
|
19 | { |
|
20 | public function __invoke(ContainerInterface $container, $requestedName, array $options = null) : BlogOverviewAction |
|
21 | { |
|
22 | $config = $container->get('config'); |
|
23 | return new BlogOverviewAction( |
|
24 | $container->get(TemplateRendererInterface::class), |
|
25 | $container->get(ContentCreator::class), |
|
26 | $container->get(MarkdownDocumentParser::class), |
|
27 | $config['markdown_cms'] |
|
28 | ); |
|
29 | } |
|
30 | } |
@@ 18-30 (lines=13) @@ | ||
15 | use Zend\Expressive\Template\TemplateRendererInterface; |
|
16 | use Jolicht\MarkdownCms\ContentType\ContentCreator; |
|
17 | ||
18 | class SingleBlogEntryActionFactory implements FactoryInterface |
|
19 | { |
|
20 | public function __invoke(ContainerInterface $container, $requestedName, array $options = null) : SingleBlogEntryAction |
|
21 | { |
|
22 | $config = $container->get('config'); |
|
23 | return new SingleBlogEntryAction( |
|
24 | $container->get(TemplateRendererInterface::class), |
|
25 | $container->get(ContentCreator::class), |
|
26 | $container->get(MarkdownDocumentParser::class), |
|
27 | $config['markdown_cms'] |
|
28 | ); |
|
29 | } |
|
30 | } |