1 | <?php |
||
13 | class Modular extends Composite |
||
14 | { |
||
15 | /** |
||
16 | * @inheritdoc |
||
17 | * |
||
18 | * can accept parameters. |
||
19 | * |
||
20 | * - {moduleId}: the unique module id associated to this rule. |
||
21 | */ |
||
22 | public $notFoundMessage = 'Unknown route for module `{moduleId}`.'; |
||
23 | |||
24 | /** |
||
25 | * @var string unique id to grab the module from the application that will |
||
26 | * parse the rules. |
||
27 | */ |
||
28 | public $moduleId; |
||
29 | |||
30 | /** |
||
31 | * @inheritdoc |
||
32 | */ |
||
33 | protected function isApplicable(string $route): bool |
||
38 | |||
39 | /** |
||
40 | * @inheritdoc |
||
41 | */ |
||
42 | protected function createRules() |
||
57 | |||
58 | /** |
||
59 | * @inheritdoc |
||
60 | */ |
||
61 | protected function createNotFoundException(): NotFoundHttpException |
||
67 | } |
||
68 |