1 | <?php |
||
26 | class PHPEngine extends AbstractEngine |
||
27 | { |
||
28 | |||
29 | const PHP_EXTENSION = '.php'; |
||
30 | |||
31 | /** |
||
32 | * Check whether the Findable can handle an individual criterion. |
||
33 | * |
||
34 | * @since 0.1.0 |
||
35 | * |
||
36 | * @param mixed $criterion Criterion to check. |
||
37 | * |
||
38 | * @return bool Whether the Findable can handle the criterion. |
||
39 | */ |
||
40 | 30 | public function canHandle($criterion) |
|
45 | |||
46 | /** |
||
47 | * Get the rendering callback for a given URI. |
||
48 | * |
||
49 | * @since 0.1.0 |
||
50 | * |
||
51 | * @param string $uri URI to render. |
||
52 | * @param array $context Context in which to render. |
||
53 | * |
||
54 | * @return callable Rendering callback. |
||
55 | * @throws FailedToLoadView If the View URI is not accessible or readable. |
||
56 | * @throws FailedToLoadView If the View URI could not be loaded. |
||
57 | */ |
||
58 | 28 | public function getRenderCallback($uri, array $context = []) |
|
101 | } |
||
102 |