Skip to content

Commit

Permalink
Refactored ImageTask
Browse files Browse the repository at this point in the history
  • Loading branch information
programarivm committed Oct 11, 2024
1 parent df8afff commit a110be3
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions src/Command/Binary/Async/ImageTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,12 @@
use Chess\Media\BoardToPng;
use Chess\Variant\Classical\FEN\StrToBoard as ClassicalStrToBoard;
use Chess\Variant\Classical\PGN\AN\Color;
use ChessServer\Command\AbstractAsyncTask;
use ChessServer\Socket\AbstractSocket;
use Spatie\Async\Task;

class ImageTask extends Task
class ImageTask extends AbstractAsyncTask
{
private array $params;

public function __construct(array $params)
{
$this->params = $params;
}

public function configure()
{
}

public function run()
{
$board = (new ClassicalStrToBoard($this->params['fen']))->create();
Expand Down

0 comments on commit a110be3

Please sign in to comment.