| Conditions | 2 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 42 | private function createLazyCommand(string $class): LazyCommand |
||
| 43 | { |
||
| 44 | return new LazyCommand( |
||
| 45 | $class::NAME, |
||
| 46 | [], |
||
| 47 | \defined(sprintf('%s::%s', $class, 'DESCRIPTION')) |
||
| 48 | ? $class::DESCRIPTION |
||
| 49 | : '', |
||
| 50 | false, |
||
| 51 | function () use ($class): SymfonyCommand { |
||
| 52 | $command = $this->container->get($class); |
||
| 53 | $command->setContainer($this->container); |
||
| 54 | |||
| 55 | return $command; |
||
| 56 | } |
||
| 60 |