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\Command;
use Zend\ServiceManager\Factory\FactoryInterface;
use Interop\Container\ContainerInterface;
use Jolicht\MarkdownCms\Parser\ParseContentExecutor;
class ParseContentCommandFactory implements FactoryInterface
{
* Get parse content command
* @return ParseContentCommand
* {@inheritDoc}
* @see \Zend\ServiceManager\Factory\FactoryInterface::__invoke()
public function __invoke(ContainerInterface $container, $requestedName, array $options = null) : ParseContentCommand
$command = new ParseContentCommand();
$command->setParseContentExecutor($container->get(ParseContentExecutor::class));
return $command;
}