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