| @@ 140-150 (lines=11) @@ | ||
| 137 | /** |
|
| 138 | * {@inheritdoc} |
|
| 139 | */ |
|
| 140 | public function get($path) |
|
| 141 | { |
|
| 142 | $path = $this->sanitizePath($path); |
|
| 143 | $filesystemPath = $this->baseDir.$path; |
|
| 144 | ||
| 145 | if (!file_exists($filesystemPath)) { |
|
| 146 | throw ResourceNotFoundException::forPath($path); |
|
| 147 | } |
|
| 148 | ||
| 149 | return $this->createResource($filesystemPath, $path); |
|
| 150 | } |
|
| 151 | ||
| 152 | /** |
|
| 153 | * {@inheritdoc} |
|
| @@ 430-440 (lines=11) @@ | ||
| 427 | return new FilesystemResourceCollection($resources); |
|
| 428 | } |
|
| 429 | ||
| 430 | private function getFilesystemPath($path) |
|
| 431 | { |
|
| 432 | $path = $this->sanitizePath($path); |
|
| 433 | $filesystemPath = $this->baseDir.$path; |
|
| 434 | ||
| 435 | if (!file_exists($filesystemPath)) { |
|
| 436 | throw ResourceNotFoundException::forPath($path); |
|
| 437 | } |
|
| 438 | ||
| 439 | return $filesystemPath; |
|
| 440 | } |
|
| 441 | ||
| 442 | private function getGlobIterator($query, $language) |
|
| 443 | { |
|