@@ -106,6 +106,9 @@ discard block |
||
| 106 | 106 | $controller->finalize (); |
| 107 | 107 | } |
| 108 | 108 | |
| 109 | + /** |
|
| 110 | + * @param Controller $controller |
|
| 111 | + */ |
|
| 109 | 112 | public static function injectDependences($controller,$config){ |
| 110 | 113 | if (\array_key_exists ( "di", $config )) { |
| 111 | 114 | $di = $config ["di"]; |
@@ -153,6 +156,9 @@ discard block |
||
| 153 | 156 | self::$config = $config; |
| 154 | 157 | } |
| 155 | 158 | |
| 159 | + /** |
|
| 160 | + * @param string[] $needs |
|
| 161 | + */ |
|
| 156 | 162 | private static function needsKeyInConfigArray(&$result, $array, $needs) { |
| 157 | 163 | foreach ( $needs as $need ) { |
| 158 | 164 | if (! isset ( $array [$need] ) || UString::isNull ( $array [$need] )) { |