From b40e988dcd7686128a47010161ba13e32d5fdb45 Mon Sep 17 00:00:00 2001 From: barbushin Date: Tue, 30 Jun 2015 10:52:47 +0300 Subject: [PATCH] Add public PhpConsole\Connector::disable() method Referenced to https://github.com/barbushin/php-console-laravel/issues/7 --- src/PhpConsole/Connector.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/PhpConsole/Connector.php b/src/PhpConsole/Connector.php index 113aa72..368b5f8 100644 --- a/src/PhpConsole/Connector.php +++ b/src/PhpConsole/Connector.php @@ -177,7 +177,7 @@ public function isActiveClient() { /** * Set client connection as not active */ - protected function breakClientConnection() { + public function disable() { $this->isActiveClient = false; } @@ -203,7 +203,7 @@ public function setAllowedIpMasks(array $ipMasks) { } } } - $this->breakClientConnection(); + $this->disable(); } } @@ -546,7 +546,7 @@ private function listenGetPostponedResponse() { if(isset($_POST[self::POST_VAR_NAME]['getPostponedResponse'])) { header('Content-Type: application/json; charset=' . self::CLIENT_ENCODING); echo $this->getPostponeStorage()->pop($_POST[self::POST_VAR_NAME]['getPostponedResponse']); - $this->breakClientConnection(); + $this->disable(); exit; } }