1 | <?php |
||
18 | class StringLoader implements LoaderInterface |
||
19 | { |
||
20 | /** |
||
21 | * {@inheritdoc} |
||
22 | * |
||
23 | * @param string $name |
||
24 | */ |
||
25 | public function getCacheKey($name): string |
||
29 | /** |
||
30 | * {@inheritdoc} |
||
31 | * |
||
32 | * @param string $name |
||
33 | * @param int $time |
||
34 | */ |
||
35 | public function isFresh($name, $time): bool |
||
39 | |||
40 | /** |
||
41 | * Returns the source context for a given template logical name. |
||
42 | * |
||
43 | * @param string $name The template logical name |
||
44 | * |
||
45 | * @return Source |
||
46 | */ |
||
47 | public function getSourceContext($name): Source |
||
51 | |||
52 | /** |
||
53 | * Check if we have the source code of a template, given its name. |
||
54 | * |
||
55 | * @param string $name The name of the template to check if we can load |
||
56 | * |
||
57 | * @return bool If the template source code is handled by this loader or not |
||
58 | */ |
||
59 | public function exists($name) |
||
63 | } |
||
64 |