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