| 1 | <?php |
||
| 13 | class CachedRouter |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var callable |
||
| 17 | */ |
||
| 18 | protected $builder; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | protected $cacheFile; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var bool |
||
| 27 | */ |
||
| 28 | protected $cacheEnabled; |
||
| 29 | |||
| 30 | 3 | public function __construct(callable $builder, string $cacheFile, bool $cacheEnabled = true) |
|
| 36 | |||
| 37 | 3 | public function dispatch(ServerRequestInterface $request): ResponseInterface |
|
| 42 | |||
| 43 | 3 | protected function buildRouter(ServerRequestInterface $request): Router |
|
| 69 | } |
||
| 70 |