1 | <?php |
||
18 | class FileSystemLocator implements LocatorInterface |
||
19 | { |
||
20 | /** |
||
21 | * @var string[] |
||
22 | */ |
||
23 | protected $roots; |
||
24 | |||
25 | /** |
||
26 | * @param array[] $options |
||
27 | */ |
||
28 | public function setOptions(array $options = array()) |
||
36 | |||
37 | /** |
||
38 | * @param string $path |
||
39 | * |
||
40 | * @throws NotLoadableException |
||
41 | * |
||
42 | * @return string |
||
43 | */ |
||
44 | public function locate($path) |
||
55 | |||
56 | /** |
||
57 | * @param string $root |
||
58 | * @param string $path |
||
59 | * |
||
60 | * @return string|false |
||
61 | */ |
||
62 | protected function generateAbsolutePath($root, $path) |
||
66 | |||
67 | /** |
||
68 | * @param string $root |
||
69 | * |
||
70 | * @throws InvalidArgumentException |
||
71 | * |
||
72 | * @return string |
||
73 | */ |
||
74 | protected function sanitizeRootPath($root) |
||
82 | |||
83 | /** |
||
84 | * @param string $path |
||
85 | * |
||
86 | * @throws NotLoadableException |
||
87 | * |
||
88 | * @return string |
||
89 | */ |
||
90 | private function sanitizeAbsolutePath($path) |
||
101 | } |
||
102 |