Commit 87caef18 authored by Florentin L'Homme's avatar Florentin L'Homme
Browse files

Correction pour passer à ZF3

parent a558f4b1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ use UnicaenDbImport\Domain\ImportInterface;
use UnicaenDbImport\Service\ImportService;
use Zend\Console\ColorInterface;
use Zend\Console\Request;
use Zend\Mvc\Controller\AbstractConsoleController;
use Zend\Mvc\Console\Controller\AbstractConsoleController;

class ConsoleController extends AbstractConsoleController
{
+3 −3
Original line number Diff line number Diff line
@@ -2,15 +2,15 @@

namespace UnicaenDbImport\Controller;

use Interop\Container\ContainerInterface;
use UnicaenDbImport\Service\ImportService;
use Zend\Mvc\Controller\ControllerManager;

class ConsoleControllerFactory
{
    function __invoke(ControllerManager $sl)
    function __invoke(ContainerInterface $sl)
    {
        /** @var ImportService $importService */
        $importService = $sl->getServiceLocator()->get(ImportService::class);
        $importService = $sl->get(ImportService::class);

        $controller = new ConsoleController();
        $controller->setImportService($importService);