@@ -41,16 +41,16 @@ discard block |
||
| 41 | 41 | $schema = $input->getArgument('schema'); |
| 42 | 42 | $fileName = $input->getArgument('file'); |
| 43 | 43 | |
| 44 | - $schemaDefinition = $this->getContainer()->getParameter('qltyc_tl.imports.'.$schema); |
|
| 44 | + $schemaDefinition = $this->getContainer()->getParameter('qltyc_tl.imports.' . $schema); |
|
| 45 | 45 | |
| 46 | 46 | $begin = new \DateTime(); |
| 47 | - $output->writeln('<comment>Début de l\'import du fichier '.$fileName.' avec le schema '.$schema.' à '.$begin->format('d-m-Y G:i:s').'</comment>'); |
|
| 47 | + $output->writeln('<comment>Début de l\'import du fichier ' . $fileName . ' avec le schema ' . $schema . ' à ' . $begin->format('d-m-Y G:i:s') . '</comment>'); |
|
| 48 | 48 | |
| 49 | 49 | $this->getContainer()->get('qltyc.tl.import')->import($schemaDefinition, $fileName, $output); |
| 50 | 50 | |
| 51 | 51 | $end = new \DateTime(); |
| 52 | 52 | $output->writeln(''); |
| 53 | - $output->writeln('<comment>L\'import du fichier '.$fileName.' utilisant le schema '.$schema.' est terminé à '.$end->format('d-m-Y G:i:s').'</comment>'); |
|
| 53 | + $output->writeln('<comment>L\'import du fichier ' . $fileName . ' utilisant le schema ' . $schema . ' est terminé à ' . $end->format('d-m-Y G:i:s') . '</comment>'); |
|
| 54 | 54 | |
| 55 | 55 | $this->release(); |
| 56 | 56 | } |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | private function checkSchema(InputInterface $input, OutputInterface $output) |
| 119 | 119 | { |
| 120 | 120 | $schema = $input->getArgument('schema'); |
| 121 | - if (!$this->getContainer()->hasParameter('qltyc_tl.imports.'.$schema)) { |
|
| 121 | + if (!$this->getContainer()->hasParameter('qltyc_tl.imports.' . $schema)) { |
|
| 122 | 122 | $output->writeln('This schema doesn\'t exist !'); |
| 123 | 123 | |
| 124 | 124 | return 1; |
@@ -23,11 +23,11 @@ |
||
| 23 | 23 | $config = $this->processConfiguration($configuration, $configs); |
| 24 | 24 | if (array_key_exists('imports', $config)) { |
| 25 | 25 | foreach ($config['imports'] as $importName => $importConfig) { |
| 26 | - $container->setParameter('qltyc_tl.imports.'.strtolower($importName), $importConfig); |
|
| 26 | + $container->setParameter('qltyc_tl.imports.' . strtolower($importName), $importConfig); |
|
| 27 | 27 | } |
| 28 | 28 | } |
| 29 | 29 | |
| 30 | - $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 30 | + $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 31 | 31 | $loader->load('services.yml'); |
| 32 | 32 | } |
| 33 | 33 | |