| @@ 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 | { |
|
| @@ 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} |
|