protected function execute(InputInterface $input, OutputInterface $output)
 {
     /**
      * set context inside container
      */
     $this->container->register(new LoggerProvider($output));
     $parser = new ParseExpertConfig();
     $parser->parse($input->getArgument('configFile'));
     $this->container['logger']->info('<info>File don\'t show errors.</info>');
 }
 /**
  * @dataProvider provider
  * @param $filePath
  * @param null $exception
  */
 public function test($filePath, $exception = null)
 {
     if (!defined('ROOT_PATH')) {
         define('ROOT_PATH', realpath(__DIR__ . '/../'));
     }
     $parser = new ParseExpertConfig();
     if (null !== $exception) {
         $this->setExpectedException($exception);
     }
     $this->assertInternalType('array', $parser->parse($filePath));
 }
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $this->container->register(new LoggerProvider($output));
     $this->container['http_client_pool']->overrideUser($input->getOption('user'))->overridePassword($input->getOption('password'));
     try {
         $logger = $this->container['logger'];
         $parser = new ParseExpertConfig();
         $config = $parser->parse($input->getArgument('configFile'));
         $manager = new ConfigExpertManager($this->container['http_client_pool'], $this->container['manager_rabbitmq_vhost'], $logger);
         $manager->manageConfig($config);
     } catch (\Exception $e) {
         $logger->critical($e->getMessage());
         return 1;
     }
     return 0;
 }