Select Git revision
EntityServiceFactory.php
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
EntityServiceFactory.php 663 B
<?php
namespace <namespace>;
use Application\Constants;
use Zend\ServiceManager\ServiceLocatorInterface as ContainerInterface;
use <targetFullClass>;
/**
* Description of <class>
*
* @author <author>
*/
class <class>
{
/**
* @param ContainerInterface $container
* @param string $requestedName
* @param array|null $options
*
* @return <targetClass>
*/
public function __invoke(ContainerInterface $container, $requestedName, $options = null)
{
$<variable> = new <targetClass>;
$<variable>->setEntityManager($container->get(Constants::BDD));
return $<variable>;
}
}