Skip to content

Commit

Permalink
Updated ChessServer\Command\Data\Cli
Browse files Browse the repository at this point in the history
  • Loading branch information
programarivm committed Oct 3, 2024
1 parent 80c8221 commit 79de60e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Command/Data/Cli.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function __construct(Pool $pool, Db $db)
$this->commands->attach(new AutocompleteWhiteCommand($db));
$this->commands->attach(new ResultEventCommand($db));
$this->commands->attach(new ResultPlayerCommand($db));
$this->commands->attach((new SearchCommand($db))->setPool($pool));
$this->commands->attach((new SearchCommand())->setPool($pool));
}

public function getDb(): Db
Expand Down
5 changes: 1 addition & 4 deletions src/Command/Data/SearchCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,13 @@

namespace ChessServer\Command\Data;

use ChessServer\Db;
use ChessServer\Command\AbstractCommand;
use ChessServer\Socket\AbstractSocket;

class SearchCommand extends AbstractCommand
{
public function __construct(Db $db)
public function __construct()
{
parent::__construct($db);

$this->name = '/search';
$this->description = 'Finds up to 25 games matching the criteria.';
$this->params = [
Expand Down

0 comments on commit 79de60e

Please sign in to comment.