src/PhpConsole/Connector.php
private function proceedResponsePackage() {
		if($this->isActiveClient()) {
			$response = new Response();
			$response->isSslOnlyMode = $this->isSslOnlyMode;

			if(isset($_POST[self::POST_VAR_NAME]['getBackData'])) {
				$response->getBackData = $_POST[self::POST_VAR_NAME]['getBackData'];
			}

			if(!$this->isSslOnlyMode || $this->isSsl()) {
				if($this->auth) {
					$response->auth = $this->auth->getServerAuthStatus($this->client->auth);
				}
				if(!$this->auth || $this->isAuthorized()) {
					$response->isLocal = isset($_SERVER['REMOTE_ADDR']) && $_SERVER['REMOTE_ADDR'] == '127.0.0.1';
					$response->docRoot = isset($_SERVER['DOCUMENT_ROOT']) ? $_SERVER['DOCUMENT_ROOT'] : null;
					$response->sourcesBasePath = $this->sourcesBasePath;
					$response->isEvalEnabled = $this->isEvalListenerStarted;
					$response->messages = $this->messages;
				}
			}

			$responseData = $this->serializeResponse($response);

			if(strlen($responseData) > $this->headersLimit || !$this->setHeaderData($responseData, self::HEADER_NAME, false)) {
				$this->getPostponeStorage()->push($this->postponeResponseId, $responseData);
			}
		}
	}
private function proceedResponsePackage() {
		if($this->isActiveClient()) {
			$response = new Response();
			$response->isSslOnlyMode = $this->isSslOnlyMode;

			if(isset($_POST[self::POST_VAR_NAME]['getBackData'])) {
				$response->getBackData = $_POST[self::POST_VAR_NAME]['getBackData'];
			}

			if(!$this->isSslOnlyMode || $this->isSsl()) {
				if($this->auth) {
					$response->auth = $this->auth->getServerAuthStatus($this->client->auth);
				}
				if(!$this->auth || $this->isAuthorized()) {
					$response->isLocal = isset($_SERVER['REMOTE_ADDR']) && $_SERVER['REMOTE_ADDR'] == '127.0.0.1';
					$response->docRoot = isset($_SERVER['DOCUMENT_ROOT']) ? $_SERVER['DOCUMENT_ROOT'] : null;
					$response->sourcesBasePath = $this->sourcesBasePath;
					$response->isEvalEnabled = $this->isEvalListenerStarted;
					$response->messages = $this->messages;
				}
			}

			$responseData = $this->serializeResponse($response);

			if(strlen($responseData) > $this->headersLimit || !$this->setHeaderData($responseData, self::HEADER_NAME, false)) {
				$this->getPostponeStorage()->push($this->postponeResponseId, $responseData);
			}
		}
	}
private function proceedResponsePackage ( ) { if ( $ this -> isActiveClient ( ) ) { $ response = new Response ( ) ; $ response -> isSslOnlyMode = $ this -> isSslOnlyMode ; if ( isset ( $ _POST [ self :: POST_VAR_NAME ] [ 'getBackData' ] ) ) { $ response -> getBackData = $ _POST [ self :: POST_VAR_NAME ] [ 'getBackData' ] ; } if ( ! $ this -> isSslOnlyMode || $ this -> isSsl ( ) ) { if ( $ this -> auth ) { $ response -> auth = $ this -> auth -> getServerAuthStatus ( $ this -> client -> auth ) ; } if ( ! $ this -> auth || $ this -> isAuthorized ( ) ) { $ response -> isLocal = isset ( $ _SERVER [ 'REMOTE_ADDR' ] ) && $ _SERVER [ 'REMOTE_ADDR' ] == '127.0.0.1' ; $ response -> docRoot = isset ( $ _SERVER [ 'DOCUMENT_ROOT' ] ) ? $ _SERVER [ 'DOCUMENT_ROOT' ] : null ; $ response -> sourcesBasePath = $ this -> sourcesBasePath ; $ response -> isEvalEnabled = $ this -> isEvalListenerStarted ; $ response -> messages = $ this -> messages ; } } $ responseData = $ this -> serializeResponse ( $ response ) ; if ( strlen ( $ responseData ) > $ this -> headersLimit || ! $ this -> setHeaderData ( $ responseData , self :: HEADER_NAME , false ) ) { $ this -> getPostponeStorage ( ) -> push ( $ this -> postponeResponseId , $ responseData ) ; } } }
Send response data to client
@throws \Exception
Send response data to client