Commit d019bb5c authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

pas besoin de renderer!!!

parent 2c539e43
Loading
Loading
Loading
Loading
−12
Changes for module/Contrat/src/Controller/ContratController.php: 0 added lines, 12 removed lines.
Original line number Diff line number Diff line
@@ -27,7 +27,6 @@ use Enseignement\Service\ServiceServiceAwareTrait;
use Intervenant\Service\NoteServiceAwareTrait;
use Laminas\Http\Response;
use Laminas\View\Model\JsonModel;
use Laminas\View\Renderer\PhpRenderer;
use Lieu\Entity\Db\Structure;
use LogicException;
use Service\Entity\Db\TypeService;
@@ -58,17 +57,6 @@ class ContratController extends AbstractController
    use NoteServiceAwareTrait;
    use ContratServiceListeServiceAwareTrait;

    private $renderer;



    public function __construct(PhpRenderer $renderer)
    {

        $this->renderer = $renderer;
    }



    /**
     * Initialisation des filtres Doctrine pour les historique.
+1 −4
Changes for module/Contrat/src/Controller/ContratControllerFactory.php: 1 added line, 4 removed lines.
Original line number Diff line number Diff line
@@ -16,10 +16,7 @@ class ContratControllerFactory
     */
    public function __invoke(ContainerInterface $container, $requestedName, $options = null)
    {

        $renderer = $container->get('ViewRenderer');

        $controller = new ContratController($renderer);
        $controller = new ContratController();
        $controller->setServiceContratServiceListe($container->get(ContratServiceListeService::class));

        return $controller;