| @@ 144-154 (lines=11) @@ | ||
| 141 | /** |
|
| 142 | * {@inheritdoc} |
|
| 143 | */ |
|
| 144 | public function get($path) |
|
| 145 | { |
|
| 146 | $path = $this->sanitizePath($path); |
|
| 147 | $filesystemPath = $this->baseDir.$path; |
|
| 148 | ||
| 149 | if (!file_exists($filesystemPath)) { |
|
| 150 | throw ResourceNotFoundException::forPath($path); |
|
| 151 | } |
|
| 152 | ||
| 153 | return $this->createResource($filesystemPath, $path); |
|
| 154 | } |
|
| 155 | ||
| 156 | /** |
|
| 157 | * {@inheritdoc} |
|
| @@ 449-459 (lines=11) @@ | ||
| 446 | return new FilesystemResourceCollection($resources); |
|
| 447 | } |
|
| 448 | ||
| 449 | private function getFilesystemPath($path) |
|
| 450 | { |
|
| 451 | $path = $this->sanitizePath($path); |
|
| 452 | $filesystemPath = $this->baseDir.$path; |
|
| 453 | ||
| 454 | if (!file_exists($filesystemPath)) { |
|
| 455 | throw ResourceNotFoundException::forPath($path); |
|
| 456 | } |
|
| 457 | ||
| 458 | return $filesystemPath; |
|
| 459 | } |
|
| 460 | ||
| 461 | private function getGlobIterator($query, $language) |
|
| 462 | { |
|