Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 43c0f13

Browse files
authored
Update PhpFpmConnectionFactory.php
fixes #3
1 parent d348183 commit 43c0f13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/PhpFpmConnectionFactory.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function __construct(string $dsn)
2222

2323
public function createContext(): Context
2424
{
25-
$dsn = newDsn($this->dsn);
25+
$dsn = Dsn::parseFirst($this->dsn);
2626
if ('unix' == $dsn->getSchemeProtocol()) {
2727
$socket = new UnixDomainSocket($dsn->getPath());
2828
} else if ('tcp' == $dsn->getSchemeProtocol()) {
@@ -33,4 +33,4 @@ public function createContext(): Context
3333

3434
return new PhpFpmContext(new Client($socket));
3535
}
36-
}
36+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /