@@ -43,6 +43,7 @@ discard block |
||
| 43 | 43 | /** |
| 44 | 44 | * {@inheritDoc} |
| 45 | 45 | * @see \Ubiquity\controllers\Controller::isValid() |
| 46 | + * @param string $action |
|
| 46 | 47 | */ |
| 47 | 48 | public function isValid($action) { |
| 48 | 49 | return $this->_getAuthController()->_isValidUser(); |
@@ -79,6 +80,9 @@ discard block |
||
| 79 | 80 | protected abstract function getAuthController():AuthController; |
| 80 | 81 | |
| 81 | 82 | |
| 83 | + /** |
|
| 84 | + * @param AuthController $authController |
|
| 85 | + */ |
|
| 82 | 86 | protected function checkConnection($authController){ |
| 83 | 87 | if($authController->_checkConnectionTimeout()!=null){ |
| 84 | 88 | $authController->_disconnected(); |
@@ -44,6 +44,9 @@ |
||
| 44 | 44 | $this->onInvalidControl (); |
| 45 | 45 | } |
| 46 | 46 | |
| 47 | + /** |
|
| 48 | + * @param string $action |
|
| 49 | + */ |
|
| 47 | 50 | public function isValid($action){ |
| 48 | 51 | if(isset($this->restCache["authorizations"])){ |
| 49 | 52 | if(\array_search($action, $this->restCache["authorizations"])!==false){ |
@@ -109,6 +109,9 @@ discard block |
||
| 109 | 109 | } |
| 110 | 110 | } |
| 111 | 111 | |
| 112 | + /** |
|
| 113 | + * @param Controller $controller |
|
| 114 | + */ |
|
| 112 | 115 | public static function injectDependences($controller,$config){ |
| 113 | 116 | if (\array_key_exists ( "di", $config )) { |
| 114 | 117 | $di = $config ["di"]; |
@@ -156,6 +159,9 @@ discard block |
||
| 156 | 159 | self::$config = $config; |
| 157 | 160 | } |
| 158 | 161 | |
| 162 | + /** |
|
| 163 | + * @param string[] $needs |
|
| 164 | + */ |
|
| 159 | 165 | private static function needsKeyInConfigArray(&$result, $array, $needs) { |
| 160 | 166 | foreach ( $needs as $need ) { |
| 161 | 167 | if (! isset ( $array [$need] ) || UString::isNull ( $array [$need] )) { |