Skip to content

Commit

Permalink
Improve constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
ben221199 committed Dec 10, 2024
1 parent 4a520ae commit 332aa14
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Connections/EPPTCPConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}

/**
Expand Down

0 comments on commit 332aa14

Please sign in to comment.