Skip to content
Snippets Groups Projects
Select Git revision
  • fa4f20f6b58eec5d22e9297fe8b9d68d8b893dc5
  • master default protected
  • pcre
3 results

main.cf

Blame
  • 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>;
        }
    }