src/PhpConsole/Connector.php
private function initConnection() {
		if($this->isCliMode()) {
			return;
		}

		$this->initServerCookie();
		$this->client = $this->initClient();

		if($this->client) {
			ob_start();
			$this->isActiveClient = true;
			$this->registerFlushOnShutDown();
			$this->setHeadersLimit(isset($_SERVER['SERVER_SOFTWARE']) && stripos($_SERVER['SERVER_SOFTWARE'], 'nginx') !== false
				? 4096 // default headers limit for Nginx
				: 8192 // default headers limit for all other web-servers
			);
			$this->listenGetPostponedResponse();
			$this->postponeResponseId = $this->setPostponeHeader();
		}
	}
private function initConnection() {
		if($this->isCliMode()) {
			return;
		}

		$this->initServerCookie();
		$this->client = $this->initClient();

		if($this->client) {
			ob_start();
			$this->isActiveClient = true;
			$this->registerFlushOnShutDown();
			$this->setHeadersLimit(isset($_SERVER['SERVER_SOFTWARE']) && stripos($_SERVER['SERVER_SOFTWARE'], 'nginx') !== false
				? 4096 // default headers limit for Nginx
				: 8192 // default headers limit for all other web-servers
			);
			$this->listenGetPostponedResponse();
			$this->postponeResponseId = $this->setPostponeHeader();
		}
	}
private function initConnection ( ) { if ( $ this -> isCliMode ( ) ) { return ; } $ this -> initServerCookie ( ) ; $ this -> client = $ this -> initClient ( ) ; if ( $ this -> client ) { ob_start ( ) ; $ this -> isActiveClient = true ; $ this -> registerFlushOnShutDown ( ) ; $ this -> setHeadersLimit ( isset ( $ _SERVER [ 'SERVER_SOFTWARE' ] ) && stripos ( $ _SERVER [ 'SERVER_SOFTWARE' ] , 'nginx' ) !== false ? 4096 // default headers limit for Nginx : 8192 // default headers limit for all other web-servers ) ; $ this -> listenGetPostponedResponse ( ) ; $ this -> postponeResponseId = $ this -> setPostponeHeader ( ) ; } }
Notify clients that there is active PHP Console on server & check if there is request from client with active PHP Console
@throws \Exception
Notify clients that there is active PHP Console on server & check if there is request from client with active PHP Console