1 | <?php |
||
15 | class StringLoader implements \Twig_LoaderInterface |
||
16 | { |
||
17 | /** |
||
18 | * {@inheritdoc} |
||
19 | */ |
||
20 | public function getSource($name) |
||
24 | /** |
||
25 | * {@inheritdoc} |
||
26 | */ |
||
27 | public function getCacheKey($name) |
||
31 | /** |
||
32 | * {@inheritdoc} |
||
33 | */ |
||
34 | public function isFresh($name, $time) |
||
38 | |||
39 | /** |
||
40 | * Returns the source context for a given template logical name. |
||
41 | * |
||
42 | * @param string $name The template logical name |
||
43 | * |
||
44 | * @return Twig_Source |
||
45 | * |
||
46 | * @throws Twig_Error_Loader When $name is not found |
||
47 | */ |
||
48 | public function getSourceContext($name) |
||
52 | |||
53 | /** |
||
54 | * Check if we have the source code of a template, given its name. |
||
55 | * |
||
56 | * @param string $name The name of the template to check if we can load |
||
57 | * |
||
58 | * @return bool If the template source code is handled by this loader or not |
||
59 | */ |
||
60 | public function exists($name) |
||
64 | } |
||
65 |