Loading module/Import/src/Import/Service/Factory/FetcherServiceFactory.php +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 Loading @@ -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; } Loading module/Import/src/Import/Service/FetcherService.php +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 Loading @@ -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']; } /** Loading Loading @@ -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 Loading Loading
module/Import/src/Import/Service/Factory/FetcherServiceFactory.php +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 Loading @@ -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; } Loading
module/Import/src/Import/Service/FetcherService.php +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 Loading @@ -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']; } /** Loading Loading @@ -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 Loading