• root's avatar
    fserver · a0a3ef35
    root authored
    a0a3ef35
ContentControllerFactory.php 494 Bytes
<?php
namespace Application\Factory;

use Laminas\ServiceManager\Factory\FactoryInterface;
use Psr\Container\ContainerInterface;

class ContentControllerFactory implements FactoryInterface
{
    public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
    {
        /* get helpermanager gan */
        $headScript = $container->get('ViewHelperManager')->get('headScript');

        return new \Application\Controller\ContentController($headScript);
    }
}