mirror of
https://github.com/xPaw/PHP-Source-Query.git
synced 2026-05-18 14:33:34 +02:00
Make an abstract class for sockets and allow specifying different socket in SourceQuery
This is a preparation for tests
This commit is contained in:
@@ -109,9 +109,9 @@
|
||||
*/
|
||||
private $UseOldGetChallengeMethod;
|
||||
|
||||
public function __construct( )
|
||||
public function __construct( BaseSocket $Socket = null )
|
||||
{
|
||||
$this->Socket = new Socket( );
|
||||
$this->Socket = $Socket ?: new Socket( );
|
||||
}
|
||||
|
||||
public function __destruct( )
|
||||
|
||||
Reference in New Issue
Block a user