mirror of
https://github.com/xPaw/PHP-Source-Query.git
synced 2026-09-19 02:34:32 +02:00
Fix factory creating the wrong socket type.
This commit is contained in:
@@ -11,7 +11,7 @@ use xPaw\SourceQuery\Socket\SourceSocket;
|
|||||||
|
|
||||||
final class SourceQueryFactory
|
final class SourceQueryFactory
|
||||||
{
|
{
|
||||||
public static function createGoldSourceQuery(): SourceQuery
|
public static function createSourceQuery(): SourceQuery
|
||||||
{
|
{
|
||||||
$socket = new SourceSocket();
|
$socket = new SourceSocket();
|
||||||
$rcon = new SourceRcon($socket);
|
$rcon = new SourceRcon($socket);
|
||||||
@@ -19,7 +19,7 @@ final class SourceQueryFactory
|
|||||||
return new SourceQuery($socket, $rcon);
|
return new SourceQuery($socket, $rcon);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function createSourceQuery(): SourceQuery
|
public static function createGoldSourceQuery(): SourceQuery
|
||||||
{
|
{
|
||||||
$socket = new GoldSourceSocket();
|
$socket = new GoldSourceSocket();
|
||||||
$rcon = new GoldSourceRcon($socket);
|
$rcon = new GoldSourceRcon($socket);
|
||||||
|
|||||||
Reference in New Issue
Block a user