| @@ 86-88 (lines=3) @@ | ||
| 83 | throw new \LogicException('Loaders has to be array'); |
|
| 84 | } |
|
| 85 | ||
| 86 | if (false == array_key_exists('default', $v['loaders'])) { |
|
| 87 | $v['loaders']['default'] = ['filesystem' => null]; |
|
| 88 | } |
|
| 89 | ||
| 90 | if (empty($v['resolvers'])) { |
|
| 91 | $v['resolvers'] = []; |
|
| @@ 98-100 (lines=3) @@ | ||
| 95 | throw new \LogicException('Resolvers has to be array'); |
|
| 96 | } |
|
| 97 | ||
| 98 | if (false == array_key_exists('default', $v['resolvers'])) { |
|
| 99 | $v['resolvers']['default'] = ['web_path' => null]; |
|
| 100 | } |
|
| 101 | ||
| 102 | return $v; |
|
| 103 | }) |
|