Skip to content

Commit

Permalink
Update PhpFpmConnectionFactory.php
Browse files Browse the repository at this point in the history
fixes #3
  • Loading branch information
makasim authored Dec 1, 2018
1 parent d348183 commit 43c0f13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PhpFpmConnectionFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function __construct(string $dsn)

public function createContext(): Context
{
$dsn = new Dsn($this->dsn);
$dsn = Dsn::parseFirst($this->dsn);
if ('unix' == $dsn->getSchemeProtocol()) {
$socket = new UnixDomainSocket($dsn->getPath());
} else if ('tcp' == $dsn->getSchemeProtocol()) {
Expand All @@ -33,4 +33,4 @@ public function createContext(): Context

return new PhpFpmContext(new Client($socket));
}
}
}

0 comments on commit 43c0f13

Please sign in to comment.