コード例 #1
0
 /**
  * {@inheritdoc}
  */
 protected function initialize(InputInterface $input, OutputInterface $output)
 {
     parent::initialize($input, $output);
     $container = $this->getContainer();
     $this->filter = $container->get('app.filter.whitespace');
     $this->factory = $container->get('app.factory.scientific_notation');
     $this->transformer = $container->get('app.transformer.decimal');
 }
コード例 #2
0
 /**
  * {@inheritdoc}
  */
 protected function initialize(InputInterface $input, OutputInterface $output)
 {
     parent::initialize($input, $output);
     $this->decimalToScientificCommand = $this->getApplication()->find(DecimalToScientificCommand::COMMAND_NAME);
     $this->scientificToDecimalCommand = $this->getApplication()->find(ScientificToDecimalCommand::COMMAND_NAME);
 }