@@ -1,12 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace samsonphp\resource; |
| 3 | 3 | |
| 4 | -use Aws\CloudFront\Exception\Exception; |
|
| 5 | 4 | use samson\core\ExternalModule; |
| 6 | -use samson\core\Module; |
|
| 7 | -use samsonframework\resource\ResourceMap; |
|
| 8 | 5 | use samsonphp\event\Event; |
| 9 | -use samsonphp\resource\exception\ResourceNotFound; |
|
| 10 | 6 | |
| 11 | 7 | /** |
| 12 | 8 | * Resource router for serving static resource from unreachable web-root paths. |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | /** |
| 87 | 87 | * Get path static resources list filtered by extensions. |
| 88 | 88 | * |
| 89 | - * @param array $path Paths for static resources scanning |
|
| 89 | + * @param array $paths Paths for static resources scanning |
|
| 90 | 90 | * @param string $extension Resource type |
| 91 | 91 | * |
| 92 | 92 | * @return array Matched static resources collection with full paths |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | /** |
| 136 | 136 | * Create static assets. |
| 137 | 137 | * |
| 138 | - * @param array $paths Collection of paths for gathering resources |
|
| 138 | + * @param string[] $paths Collection of paths for gathering resources |
|
| 139 | 139 | * @param string $type Resource extension |
| 140 | 140 | */ |
| 141 | 141 | public function createAssets(array $paths, $type) |