Commit c0cdaeab by Damien Moulard

remove export params from services.yaml to avoid error upgrading other projects

parent 71c52b31
......@@ -22,11 +22,6 @@ parameters:
extra_security_admin_password: '%env(EXTRA_SECURITY_ADMIN_PASSWORD)%'
ccas_mode: '%env(CCAS_MODE)%'
use_external_data: '%env(USE_EXTERNAL_DATA)%'
export.ssh.host: '%env(EXPORT_SSH_HOST)%'
export.ssh.user: '%env(EXPORT_SSH_USER)%'
export.ssh.password: '%env(EXPORT_SSH_PASSWORD)%'
export.remote.path: '%env(EXPORT_REMOTE_PATH)%'
export.local.path: '%env(resolve:EXPORT_LOCAL_PATH)%'
# PARAMETRES DES IMPORTS POSSIBLE POUR L'APPLICATION DE GESTION DE MONNAIE LOCALE COMPLEMENTAIRE
......@@ -840,12 +835,4 @@ services:
arguments:
- '@session'
tags:
- { name: 'kernel.event_listener', event: 'security.interactive_login' }
App\Command\ExportAndUploadDataCommand:
arguments:
$host: '%export.ssh.host%'
$user: '%export.ssh.user%'
$password: '%export.ssh.password%'
$remotePath: '%export.remote.path%'
$localPath: '%export.local.path%'
\ No newline at end of file
- { name: 'kernel.event_listener', event: 'security.interactive_login' }
\ No newline at end of file
......@@ -26,21 +26,16 @@ class ExportAndUploadDataCommand extends Command
public function __construct(
CustomEntityManager $em,
LoggerInterface $logger,
string $host,
string $user,
string $password,
string $remotePath,
string $localPath
LoggerInterface $logger
) {
parent::__construct();
$this->em = $em;
$this->logger = $logger;
$this->host = $host;
$this->user = $user;
$this->password = $password;
$this->remotePath = $remotePath;
$this->localPath = $localPath;
$this->host = $_ENV['EXPORT_SSH_HOST'];
$this->user = $_ENV['EXPORT_SSH_USER'];
$this->password = $_ENV['EXPORT_SSH_PASSWORD'];
$this->remotePath = $_ENV['EXPORT_REMOTE_PATH'];
$this->localPath = $_ENV['EXPORT_LOCAL_PATH'];
}
protected function execute(InputInterface $input, OutputInterface $output): int
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment