@@ 149-159 (lines=11) @@ | ||
146 | /** |
|
147 | * {@inheritdoc} |
|
148 | */ |
|
149 | public function get($path) |
|
150 | { |
|
151 | $path = $this->sanitizePath($path); |
|
152 | $filesystemPath = $this->baseDir.$path; |
|
153 | ||
154 | if (!file_exists($filesystemPath)) { |
|
155 | throw ResourceNotFoundException::forPath($path); |
|
156 | } |
|
157 | ||
158 | return $this->createResource($filesystemPath, $path); |
|
159 | } |
|
160 | ||
161 | /** |
|
162 | * {@inheritdoc} |
|
@@ 441-451 (lines=11) @@ | ||
438 | return new FilesystemResourceCollection($resources); |
|
439 | } |
|
440 | ||
441 | private function getFilesystemPath($path) |
|
442 | { |
|
443 | $path = $this->sanitizePath($path); |
|
444 | $filesystemPath = $this->baseDir.$path; |
|
445 | ||
446 | if (!file_exists($filesystemPath)) { |
|
447 | throw ResourceNotFoundException::forPath($path); |
|
448 | } |
|
449 | ||
450 | return $filesystemPath; |
|
451 | } |
|
452 | ||
453 | private function getGlobIterator($query, $language) |
|
454 | { |