Loading module/Dossier/src/Assertion/IntervenantDossierAssertionFactory.phpdeleted 100755 → 0 +0 −26 Original line number Diff line number Diff line <?php namespace Dossier\Assertion; use Psr\Container\ContainerInterface; class IntervenantDossierAssertionFactory { /** * @param ContainerInterface $container * @param string $requestedName * @param array|null $options * * @return IntervenantDossierAssertion */ public function __invoke(ContainerInterface $container, $requestedName, $options = null): IntervenantDossierAssertion { $assertion = new IntervenantDossierAssertion; /* Injectez vos dépendances ICI */ return $assertion; } } No newline at end of file module/PieceJointe/src/Assertion/Factory/DossierPiecesAssertionFactory.phpdeleted 100755 → 0 +0 −28 Original line number Diff line number Diff line <?php namespace PieceJointe\Assertion\Factory; use Dossier\Assertion\IntervenantDossierAssertion; use PieceJointe\Assertion\DossierPiecesAssertion; use Psr\Container\ContainerInterface; class DossierPiecesAssertionFactory { /** * @param ContainerInterface $container * @param string $requestedName * @param array|null $options * * @return DossierPiecesAssertion */ public function __invoke(ContainerInterface $container, $requestedName, $options = null): DossierPiecesAssertion { $assertion = new DossierPiecesAssertion(); /* Injectez vos dépendances ICI */ return $assertion; } } No newline at end of file module/PieceJointe/src/Assertion/DossierPiecesAssertion.php→module/PieceJointe/src/Assertion/PiecesJointesAssertion.php +4 −19 Original line number Diff line number Diff line Loading @@ -9,16 +9,17 @@ use Application\Provider\Privilege\Privileges; // sous réserve que vous utilisiez les privilèges d'UnicaenAuth et que vous ayez généré votre fournisseur use Application\Service\Traits\WorkflowServiceAwareTrait; use PieceJointe\Controller\PieceJointeController; use UnicaenPrivilege\Assertion\AbstractAssertion; use Laminas\Permissions\Acl\Resource\ResourceInterface; /** * Description of DossierPiecesAssertion * Description of PiecesJointesAssertion * * @author LECLUSE Laurent <laurent.lecluse at unicaen.fr> */ class DossierPiecesAssertion extends AbstractAssertion class PiecesJointesAssertion extends AbstractAssertion { use WorkflowServiceAwareTrait; Loading @@ -35,16 +36,7 @@ class DossierPiecesAssertion extends AbstractAssertion $intervenant = $this->getMvcEvent()->getParam('intervenant'); switch ($controller) { case "Dossier\Controller\IntervenantDossier": switch ($action) { case 'index': if (!$this->assertPriv(Privileges::DOSSIER_VISUALISATION)) return false; return $this->assertDossierEdition($intervenant); break; } break; case 'PieceJointe\Controller\PieceJointe': case PieceJointeController::class: switch ($action) { case 'index': if (!$this->assertPriv(Privileges::PIECE_JUSTIFICATIVE_VISUALISATION)) return false; Loading Loading @@ -122,13 +114,6 @@ class DossierPiecesAssertion extends AbstractAssertion protected function assertDossierIdentiteEdition(Intervenant $intervenant = null) { } protected function assertPieceJointeAction(Intervenant $intervenant = null) { if (!$this->assertEtapeAtteignable(WfEtape::CODE_PJ_SAISIE, $intervenant)) { Loading Loading
module/Dossier/src/Assertion/IntervenantDossierAssertionFactory.phpdeleted 100755 → 0 +0 −26 Original line number Diff line number Diff line <?php namespace Dossier\Assertion; use Psr\Container\ContainerInterface; class IntervenantDossierAssertionFactory { /** * @param ContainerInterface $container * @param string $requestedName * @param array|null $options * * @return IntervenantDossierAssertion */ public function __invoke(ContainerInterface $container, $requestedName, $options = null): IntervenantDossierAssertion { $assertion = new IntervenantDossierAssertion; /* Injectez vos dépendances ICI */ return $assertion; } } No newline at end of file
module/PieceJointe/src/Assertion/Factory/DossierPiecesAssertionFactory.phpdeleted 100755 → 0 +0 −28 Original line number Diff line number Diff line <?php namespace PieceJointe\Assertion\Factory; use Dossier\Assertion\IntervenantDossierAssertion; use PieceJointe\Assertion\DossierPiecesAssertion; use Psr\Container\ContainerInterface; class DossierPiecesAssertionFactory { /** * @param ContainerInterface $container * @param string $requestedName * @param array|null $options * * @return DossierPiecesAssertion */ public function __invoke(ContainerInterface $container, $requestedName, $options = null): DossierPiecesAssertion { $assertion = new DossierPiecesAssertion(); /* Injectez vos dépendances ICI */ return $assertion; } } No newline at end of file
module/PieceJointe/src/Assertion/DossierPiecesAssertion.php→module/PieceJointe/src/Assertion/PiecesJointesAssertion.php +4 −19 Original line number Diff line number Diff line Loading @@ -9,16 +9,17 @@ use Application\Provider\Privilege\Privileges; // sous réserve que vous utilisiez les privilèges d'UnicaenAuth et que vous ayez généré votre fournisseur use Application\Service\Traits\WorkflowServiceAwareTrait; use PieceJointe\Controller\PieceJointeController; use UnicaenPrivilege\Assertion\AbstractAssertion; use Laminas\Permissions\Acl\Resource\ResourceInterface; /** * Description of DossierPiecesAssertion * Description of PiecesJointesAssertion * * @author LECLUSE Laurent <laurent.lecluse at unicaen.fr> */ class DossierPiecesAssertion extends AbstractAssertion class PiecesJointesAssertion extends AbstractAssertion { use WorkflowServiceAwareTrait; Loading @@ -35,16 +36,7 @@ class DossierPiecesAssertion extends AbstractAssertion $intervenant = $this->getMvcEvent()->getParam('intervenant'); switch ($controller) { case "Dossier\Controller\IntervenantDossier": switch ($action) { case 'index': if (!$this->assertPriv(Privileges::DOSSIER_VISUALISATION)) return false; return $this->assertDossierEdition($intervenant); break; } break; case 'PieceJointe\Controller\PieceJointe': case PieceJointeController::class: switch ($action) { case 'index': if (!$this->assertPriv(Privileges::PIECE_JUSTIFICATIVE_VISUALISATION)) return false; Loading Loading @@ -122,13 +114,6 @@ class DossierPiecesAssertion extends AbstractAssertion protected function assertDossierIdentiteEdition(Intervenant $intervenant = null) { } protected function assertPieceJointeAction(Intervenant $intervenant = null) { if (!$this->assertEtapeAtteignable(WfEtape::CODE_PJ_SAISIE, $intervenant)) { Loading