| Conditions | 3 |
| Paths | 3 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function getApplication() |
||
| 25 | { |
||
| 26 | $application = new Application('Doctrine Manager Builder Command Line Interface'); |
||
| 27 | $application->setCatchExceptions(true); |
||
| 28 | |||
| 29 | foreach ($this->builders as $builder) { |
||
| 30 | $helperSet = $builder->getConsoleHelperSet(); |
||
| 31 | |||
| 32 | foreach ($builder->getConsoleCommands() as $command) { |
||
| 33 | $application->add($command)->setHelperSet($helperSet); |
||
| 34 | } |
||
| 35 | } |
||
| 36 | |||
| 37 | return $application; |
||
| 38 | } |
||
| 39 | } |
||
| 40 |