1 | <?php |
||
9 | final class FilesystemLoader implements TwigLoader, TwigExistsLoader |
||
1 ignored issue
–
show
|
|||
10 | { |
||
11 | /** |
||
12 | * @var array |
||
13 | */ |
||
14 | private $path; |
||
15 | |||
16 | /** |
||
17 | * @var array |
||
18 | */ |
||
19 | private $fileExtensions = ['html.twig', 'twig']; |
||
20 | |||
21 | /** |
||
22 | * @var array |
||
23 | */ |
||
24 | private $cache = []; |
||
25 | |||
26 | /** |
||
27 | * @param string $path The template directory path |
||
28 | * @param array $fileExtensions The template file extensions |
||
29 | */ |
||
30 | public function __construct($path, array $fileExtensions = null) |
||
38 | |||
39 | /** |
||
40 | * @inheritDoc |
||
41 | */ |
||
42 | public function getSource($name) |
||
46 | |||
47 | /** |
||
48 | * @inheritDoc |
||
49 | */ |
||
50 | public function getCacheKey($name) |
||
54 | |||
55 | /** |
||
56 | * @inheritDoc |
||
57 | */ |
||
58 | public function isFresh($name, $time) |
||
62 | |||
63 | /** |
||
64 | * @inheritDoc |
||
65 | */ |
||
66 | public function exists($name) |
||
74 | |||
75 | /** |
||
76 | * @throws LoaderException When $name is not found |
||
77 | * |
||
78 | * @param string $name |
||
79 | * |
||
80 | * @return string |
||
81 | */ |
||
82 | private function template($name) |
||
95 | |||
96 | /** |
||
97 | * @param string $name |
||
98 | * |
||
99 | * @return string|null |
||
100 | */ |
||
101 | private function findTemplate($name) |
||
114 | |||
115 | /** |
||
116 | * @param string $name |
||
117 | * |
||
118 | * @return array |
||
119 | */ |
||
120 | private function possibleTemplateFiles($name) |
||
131 | |||
132 | /** |
||
133 | * @param string $name |
||
134 | * |
||
135 | * @return string |
||
136 | */ |
||
137 | private function normalizeName($name) |
||
143 | |||
144 | /** |
||
145 | * @param string $file |
||
146 | * |
||
147 | * @return string |
||
148 | */ |
||
149 | private function realFilePath($file) |
||
158 | } |
||
159 |
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.