?? GreyFile — Mystic File Browser

Current path: home/webdevt/cryptoimpot.fr/module/Application/src/Job/Factory/



?? Go up: /home/webdevt/cryptoimpot.fr/module/Application/src/Job

?? Viewing: ImportAPIFactory.php

<?php
namespace Application\Job\Factory;

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



/**
 * Description of ImportAPIFactory
 *
 * @author jimmy
 */
class ImportAPIFactory {

    public function createService(ContainerInterface $container) {
//    public function createService(ServiceLocatorInterface $service) {
        //$entityManager = $container->get('doctrine.entitymanager.orm_default');
        //$transport = $sl->getServiceLocator()->get('my-transport-service');

        $job = new \Application\Job\ImportAPI($container);
        return $job;
    }
    
    public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
    {
        $entityManager = $container->get('doctrine.entitymanager.orm_default');
        
        $job = new \Application\Job\ImportAPI($entityManager);
        return $job;
    }
    
    

    
    

}


??

??