| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public static function create(): Dispatcher |
||
| 17 | { |
||
| 18 | return cachedDispatcher(function (RouteCollector $r) |
||
| 19 | { |
||
| 20 | $r->get( '/tasks', ListTasks::class ); |
||
| 21 | $r->post( '/tasks', AddTask::class ); |
||
| 22 | $r->get( '/task/{identifier}', ShowTask::class ); |
||
| 23 | |||
| 24 | }, [ |
||
| 25 | 'cacheFile' => self::getRoutingCachePath(), |
||
| 26 | 'cacheDisabled' => !Environment::isProd(), |
||
| 27 | ]); |
||
| 44 |