Skip to content
Snippets Groups Projects
Select Git revision
  • Fix
  • master default protected
  • patch-1
  • zf-3.x
  • origin/trunk
  • origin/new_version
  • 1.1.1
  • 1.1.0
  • 1.0.0
9 results

init_autoloader.php

Blame
  • Forked from lib / unicaen / db-import
    Source project has a limited visibility.
    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>;
        }
    }