for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Lichtenwallner (https://lichtenwallner.at)
*
* @see https://github.com/jolicht/markdown-cms for the canonical source repository
* @license https://github.com/jolicht/markdown-cms/blob/master/LICENSE MIT
* @copyright Copyright (c) Johannes Lichtenwallner
*/
declare(strict_types = 1);
namespace Jolicht\MarkdownCms\Markdown;
use Zend\ServiceManager\Factory\FactoryInterface;
use Interop\Container\ContainerInterface;
use Mni\FrontYAML\Parser;
* Factory to create MarkdownDocumentParser
class MarkdownDocumentParserFactory implements FactoryInterface
{
* Get markdown document parser
* @return MarkdownDocumentParser
* {@inheritDoc}
* @see \Zend\ServiceManager\Factory\FactoryInterface::__invoke()
public function __invoke(ContainerInterface $container, $requestedName, array $options = null) : MarkdownDocumentParser
return new MarkdownDocumentParser(
$container->get(Parser::class)
);
}