1 | <?php |
||
19 | class FileSystemLocator implements LocatorInterface |
||
20 | { |
||
21 | /** |
||
22 | * @var string[] |
||
23 | */ |
||
24 | private $roots; |
||
25 | |||
26 | /** |
||
27 | * @param array[] $options |
||
28 | */ |
||
29 | public function setOptions(array $options = array()) |
||
42 | |||
43 | /** |
||
44 | * @param string $path |
||
45 | * |
||
46 | * @throws NotLoadableException |
||
47 | * |
||
48 | * @return string |
||
49 | */ |
||
50 | public function locate($path) |
||
63 | |||
64 | /** |
||
65 | * @param string $path |
||
66 | * |
||
67 | * @return bool|string |
||
68 | */ |
||
69 | private function locateUsingRootPathsSearch($path) |
||
79 | |||
80 | /** |
||
81 | * @param string $path |
||
82 | * |
||
83 | * @return bool|string |
||
84 | */ |
||
85 | private function locateUsingRootPlaceholder($path) |
||
98 | |||
99 | /** |
||
100 | * @param string $root |
||
101 | * @param string $path |
||
102 | * |
||
103 | * @return string|false |
||
104 | */ |
||
105 | protected function generateAbsolutePath($root, $path) |
||
109 | |||
110 | /** |
||
111 | * @param string $root |
||
112 | * |
||
113 | * @throws InvalidArgumentException |
||
114 | * |
||
115 | * @return string |
||
116 | */ |
||
117 | private function sanitizeRootPath($root) |
||
125 | |||
126 | /** |
||
127 | * @param string $path |
||
128 | * |
||
129 | * @throws NotLoadableException |
||
130 | * |
||
131 | * @return string |
||
132 | */ |
||
133 | private function sanitizeAbsolutePath($path) |
||
144 | } |
||
145 |