Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2.0116 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
37 | 2 | protected function initialize(InputInterface $input, OutputInterface $output) |
|
38 | { |
||
39 | 2 | parent::initialize($input, $output); |
|
40 | 2 | $this->io = new SymfonyStyle($input, $output); |
|
41 | 2 | $this->connection = $input->getOption('connection') |
|
42 | ? $this->getContainer()->get('mongo.connection.'.$input->getOption('connection')) |
||
43 | 2 | : $this->getContainer()->get('mongo.connection') |
|
44 | ; |
||
45 | 2 | } |
|
46 | } |
||
47 |