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 Mni\FrontYAML\Parser;
use Interop\Container\ContainerInterface;
use Mni\FrontYAML\Bridge\CommonMark\CommonMarkParser;
use League\CommonMark\CommonMarkConverter;
* Factory for Mni\FrontYAML\Parser
class FrontYamlParserFactory implements FactoryInterface
{
* Get front yaml parser
* @return Parser
* {@inheritDoc}
* @see \Zend\ServiceManager\Factory\FactoryInterface::__invoke()
public function __invoke(ContainerInterface $container, $requestedName, array $options = null) : Parser
return new Parser(
null,
new CommonMarkParser(
new CommonMarkConverter([])
)
);
}