src/PhpConsole/Connector.php
private function initClient() {
		if(isset($_COOKIE[self::CLIENT_INFO_COOKIE])) {
			$clientData = @json_decode(base64_decode($_COOKIE[self::CLIENT_INFO_COOKIE], true), true);
			if(!$clientData) {
				throw new \Exception('Wrong format of response cookie data: ' . $_COOKIE[self::CLIENT_INFO_COOKIE]);
			}

			$client = new Client($clientData);
			if(isset($clientData['auth'])) {
				$client->auth = new ClientAuth($clientData['auth']);
			}
			return $client;
		}
	}
private function initClient() {
		if(isset($_COOKIE[self::CLIENT_INFO_COOKIE])) {
			$clientData = @json_decode(base64_decode($_COOKIE[self::CLIENT_INFO_COOKIE], true), true);
			if(!$clientData) {
				throw new \Exception('Wrong format of response cookie data: ' . $_COOKIE[self::CLIENT_INFO_COOKIE]);
			}

			$client = new Client($clientData);
			if(isset($clientData['auth'])) {
				$client->auth = new ClientAuth($clientData['auth']);
			}
			return $client;
		}
	}
private function initClient ( ) { if ( isset ( $ _COOKIE [ self :: CLIENT_INFO_COOKIE ] ) ) { $ clientData = @ json_decode ( base64_decode ( $ _COOKIE [ self :: CLIENT_INFO_COOKIE ] , true ) , true ) ; if ( ! $ clientData ) { throw new \ Exception ( 'Wrong format of response cookie data: ' . $ _COOKIE [ self :: CLIENT_INFO_COOKIE ] ) ; } $ client = new Client ( $ clientData ) ; if ( isset ( $ clientData [ 'auth' ] ) ) { $ client -> auth = new ClientAuth ( $ clientData [ 'auth' ] ) ; } return $ client ; } }
Get connected client data(
@return Client|null
@throws \Exception
Get connected client data (