Commit b03e81fb authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Merge remote-tracking branch 'origin/master'

parents f12acb5f 2f88bf8a
Loading
Loading
Loading
Loading
+3
Changes for module/Application/config/others/these.config.php: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -11,8 +11,10 @@ use Application\Form\Factory\AttestationTheseFormFactory;
use Application\Form\Factory\DiffusionHydratorFactory;
use Application\Form\Factory\DiffusionTheseFormFactory;
use Application\Form\Factory\MetadonneeTheseFormFactory;
use Application\Form\Factory\RdvBuHydratorFactory;
use Application\Form\Factory\RdvBuTheseDoctorantFormFactory;
use Application\Form\Factory\RdvBuTheseFormFactory;
use Application\Form\Hydrator\RdvBuHydrator;
use Application\Provider\Privilege\ThesePrivileges;
use Application\Service\Acteur\ActeurService;
use Application\Service\Message\DiffusionMessages;
@@ -857,6 +859,7 @@ return [
        'factories' => array(
            'DiffusionHydrator' => DiffusionHydratorFactory::class,
            'AttestationHydrator' => AttestationHydratorFactory::class,
            'RdvBuHydrator' => RdvBuHydratorFactory::class,
        )
    ),
    'service_manager' => [
+2
Changes for module/Application/src/Application/Entity/Db/Role.php: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -18,6 +18,8 @@ class Role extends AbstractRole

    const CODE_DOCTORANT = 'DOCTORANT';
    const CODE_ADMIN = 'ADMIN';
    const CODE_BU = 'BU';
    const CODE_BDD = 'BDD';

    const CODE_DIRECTEUR_THESE = 'D';
    const CODE_MEMBRE_JURY = 'M';
+3 −2
Changes for module/Application/src/Application/Form/Factory/RdvBuHydratorFactory.php: 3 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -21,13 +21,14 @@ namespace Application\Form\Factory;
use Application\Form\Hydrator\RdvBuHydrator;
use Zend\ServiceManager\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorInterface;
use Zend\Stdlib\Hydrator\HydratorPluginManager;

class RdvBuHydratorFactory implements FactoryInterface
class RdvBuHydratorFactory
{
    /**
     * {@inheritDoc}
     */
    public function createService(ServiceLocatorInterface $serviceLocator)
    public function __invoke(HydratorPluginManager $serviceLocator)
    {
        $parentLocator = $serviceLocator->getServiceLocator();
        $rdvBuHydrator = new RdvBuHydrator($parentLocator->get('doctrine.entitymanager.orm_default'));
+2 −1
Changes for module/Application/src/Application/Form/Factory/RdvBuTheseFormFactory.php: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -12,7 +12,8 @@ class RdvBuTheseFormFactory
    {
        $sl = $formElementManager->getServiceLocator();

        $hydrator = new RdvBuHydrator($sl->get('doctrine.entitymanager.orm_default'));
        /** @var RdvBuHydrator $hydrator */
        $hydrator = $sl->get('HydratorManager')->get('RdvBuHydrator');

        $form = new RdvBuTheseForm();
        $form->setHydrator($hydrator);
+3 −3
Changes for module/Application/src/Application/Service/UserContextService.php: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -75,7 +75,7 @@ class UserContextService extends BaseUserContextService implements IndividuServi
     */
    public function getSelectedRoleDoctorant()
    {
        return $this->_getSelectedRoleForRoleId(Role::ROLE_ID_DOCTORANT);
        return $this->_getSelectedRoleForCode(Role::CODE_DOCTORANT);
    }

    /**
@@ -86,7 +86,7 @@ class UserContextService extends BaseUserContextService implements IndividuServi
     */
    public function getSelectedRoleBDD()
    {
        return $this->_getSelectedRoleForRoleId(Role::ROLE_ID_BUREAU_DES_DOCTORATS);
        return $this->_getSelectedRoleForCode(Role::CODE_BDD);
    }

    /**
@@ -94,7 +94,7 @@ class UserContextService extends BaseUserContextService implements IndividuServi
     */
    public function getSelectedRoleBU()
    {
        return $this->_getSelectedRoleForRoleId(Role::ROLE_ID_BIBLIO_UNIV);
        return $this->_getSelectedRoleForCode(Role::CODE_BU);
    }

    /**
Loading