Commit 0afc8875 authored by Florian Joriot's avatar Florian Joriot
Browse files

Correction controller element

parent 753d30d7
Loading
Loading
Loading
Loading
+1 −1
Changes for module/Application/config/paiement.config.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -270,7 +270,7 @@ return [
            Service\MiseEnPaiementIntervenantStructureService::class => Service\MiseEnPaiementIntervenantStructureService::class,
            Service\TypeHeuresService::class                         => Service\TypeHeuresService::class,
            Service\CentreCoutService::class                         => Service\CentreCoutService::class,
            Service\CentreCoutEpService::class                       => Service\CentreCoutEpService::class,
            \OffreFormation\Service\CentreCoutEpService::class       => \OffreFormation\Service\CentreCoutEpService::class,
            Service\MotifNonPaiementService::class                   => Service\MotifNonPaiementService::class,
        ],
        'factories'  => [
+1 −1
Changes for module/Application/src/Service/Traits/CentreCoutEpServiceAwareTrait.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@

namespace Application\Service\Traits;

use Application\Service\CentreCoutEpService;
use OffreFormation\Service\CentreCoutEpService;

/**
 * Description of CentreCoutEpServiceAwareTrait
+2 −1
Changes for module/OffreFormation/src/Service/CentreCoutEpService.php: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
<?php

namespace Application\Service;
namespace OffreFormation\Service;

use Application\Entity\Db\CentreCoutEp;
use Application\Entity\Db\ElementPedagogique;
use Application\Provider\Privilege\Privileges;
use Application\Service\AbstractEntityService;
use Application\Service\Traits\CentreCoutServiceAwareTrait;
use Application\Service\Traits\SourceServiceAwareTrait;
use Application\Service\Traits\TypeHeuresServiceAwareTrait;
+40 −0
Changes for module/OffreFormation/src/Service/Traits/CentreCoutEpServiceAwareTrait.php: 40 added lines, 0 removed lines.
Original line number Diff line number Diff line
<?php

namespace OffreFormation\Service\Traits;

use OffreFormation\Service\CentreCoutEpService;

/**
 * Description of CentreCoutEpServiceAwareTrait
 *
 * @author UnicaenCode
 */
trait CentreCoutEpServiceAwareTrait
{
    protected ?CentreCoutEpService $serviceCentreCoutEp = null;



    /**
     * @param CentreCoutEpService $serviceCentreCoutEp
     *
     * @return self
     */
    public function setServiceCentreCoutEp(?CentreCoutEpService $serviceCentreCoutEp)
    {
        $this->serviceCentreCoutEp = $serviceCentreCoutEp;

        return $this;
    }



    public function getServiceCentreCoutEp(): ?CentreCoutEpService
    {
        if (empty($this->serviceCentreCoutEp)) {
            $this->serviceCentreCoutEp = \Application::$container->get(CentreCoutEpService::class);
        }

        return $this->serviceCentreCoutEp;
    }
}
 No newline at end of file