Commit 94514dfd authored by Thibaut Vallee's avatar Thibaut Vallee
Browse files

correctif sur les collection et mise en protected d'attribut des viewHelper...

correctif sur les collection et mise en protected d'attribut des viewHelper pour profiter de l'héritage
parent 2cf1f2a5
Loading
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@

namespace UnicaenEvenement\Service\EvenementCollection;

use Doctrine\ORM\EntityManager;
use Psr\Container\ContainerExceptionInterface;
use Psr\Container\NotFoundExceptionInterface;
use UnicaenEvenement\Service\Etat\EtatService;
@@ -27,10 +28,16 @@ class EvenementCollectionServiceFactory
        $evenementService = $container->get(EvenementService::class);
        $typeService = $container->get(TypeService::class);

        /**
         * @var EntityManager $entityManager
         */
        $entityManager = $container->get('doctrine.entitymanager.orm_default');

        $service = new EvenementCollectionService();
        $service->setEtatEvenementService($etatService);
        $service->setEvenementService($evenementService);
        $service->setTypeService($typeService);
        $service->setObjectManager($entityManager);

        return $service;
    }
+1 −1
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@ use Laminas\View\Resolver\TemplatePathStack;

class EtatViewHelper extends AbstractHelper
{
    private ?Etat $etat = null;
    protected ?Etat $etat = null;

    public function __invoke(?Etat $etat = null): EtatViewHelper
    {
+1 −1
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@ use Laminas\View\Resolver\TemplatePathStack;

class EvenementViewHelper extends AbstractHelper
{
    private ?Evenement $evenement = null;
    protected ?Evenement $evenement = null;


    public function __invoke(?Evenement $evenement = null): EvenementViewHelper
+1 −1
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@ use Laminas\View\Resolver\TemplatePathStack;

class TypeViewHelper extends AbstractHelper
{
    private ?Type $type = null;
    protected ?Type $type = null;

    public function getType(): ?Type
    {