| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | 2 | public static function createApplication(): self |
|
| 16 | { |
||
| 17 | // create |
||
| 18 | 2 | $app = new static(); |
|
| 19 | 2 | static::setUpContainer($app); |
|
| 20 | |||
| 21 | // register the only route |
||
| 22 | 2 | $app->get('lrfc/{id}', function (SilexApp $app, string $id) { |
|
| 23 | 2 | $controller = new ListedRfcController($app['gateways']); |
|
| 24 | 2 | return $controller->get($id); |
|
| 25 | 2 | }); |
|
| 26 | |||
| 27 | 2 | return $app; |
|
| 28 | } |
||
| 30 |