| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | 5 | public static function createApplication(): self |
|
| 32 | { |
||
| 33 | // create |
||
| 34 | 5 | $containter = new Container(); |
|
| 35 | 5 | $app = new static($containter); |
|
| 36 | |||
| 37 | 5 | static::setUpContainer($containter); |
|
| 38 | |||
| 39 | // pass container to avoid gateway creation |
||
| 40 | 5 | $app->add(new UpdateCommand($containter)); |
|
| 41 | 5 | $app->add(new CatalogCommand($containter)); |
|
| 42 | |||
| 43 | 5 | return $app; |
|
| 44 | } |
||
| 46 |