diff --git a/src/Connections/EPPTCPConnection.php b/src/Connections/EPPTCPConnection.php index 1dd9b9d..d5abd64 100644 --- a/src/Connections/EPPTCPConnection.php +++ b/src/Connections/EPPTCPConnection.php @@ -10,9 +10,11 @@ class EPPTCPConnection extends EPPBaseConnection implements EPPConnection { private $registry; private $socket; - public function __construct(EPPRegistry $registry){ + public function __construct(EPPRegistry $registry,bool $openDirectly=true){ $this->registry = $registry; - $this->open(); + if($openDirectly){ + $this->open(); + } } /**