SimpleMarkdown-omeka-module/src/Service/BlockLayout/SimpleMDTextFactory.php
2021-05-08 18:54:43 +02:00

18 lines
501 B
PHP

<?php
namespace SimpleMDText\Service\BlockLayout;
use Interop\Container\ContainerInterface;
use SimpleMDText\Site\BlockLayout\SimpleMDText;
use Laminas\ServiceManager\Factory\FactoryInterface;
class SimpleMDTextFactory implements FactoryInterface
{
public function __invoke(ContainerInterface $services, $requestedName, array $options = null)
{
return new SimpleMDText(
$services->get('FormElementManager'),
$services->get('Config')['DefaultSettings']['SimpleMDTextBlockForm']
);
}
}
?>