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

Modification du module import pour le compte et mot de passe

parent 7882013f
Loading
Loading
Loading
Loading
Loading
+0 −7
Changes for module/Import/src/Import/Service/Factory/FetcherServiceFactory.php: 0 added lines, 7 removed lines.
Original line number Diff line number Diff line
@@ -14,13 +14,6 @@ class FetcherServiceFactory {
        $entityManager = $container->get('doctrine.entitymanager.orm_default');
        $config = $container->get('config');

        if (!isset($config['users']['login'])) {
            throw new Exception\MandatoryValueException("La clef <strong>login</strong> est manquante dans le fichier de configuration local de l'Import");
        }
        if (!isset($config['users']['password'])) {
            throw new Exception\MandatoryValueException("La clef <strong>password</strong> est manquante dans le fichier de configuration local de l'Import");
        }

        $service = new FetcherService($entityManager, $config);
        return $service;
    }
+4 −2
Changes for module/Import/src/Import/Service/FetcherService.php: 4 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -58,8 +58,8 @@ class FetcherService
    {
        $this->entityManager = $entityManager;
        $this->config = $config;
        $this->user = $config['users']['login'];
        $this->password = $config['users']['password'];
//        $this->user = $config['users']['login'];
//        $this->password = $config['users']['password'];
    }

    /**
@@ -134,6 +134,8 @@ class FetcherService
        $this->url = $this->config['import-api']['etablissements'][$positionEtablissement]['url'];
        $this->proxy = $this->config['import-api']['etablissements'][$positionEtablissement]['proxy'];
        $this->verify = $this->config['import-api']['etablissements'][$positionEtablissement]['verify'];
        $this->user = $this->config['import-api']['etablissements'][$positionEtablissement]['user'];
        $this->password = $this->config['import-api']['etablissements'][$positionEtablissement]['password'];
    }

    /** Fonction chargée d'optenir la réponse d'un Web Service