You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
564 B
PHP

<?php
declare(strict_types=1);
namespace App\Controller;
use App\Service\PlayerService;
class StatisticsController extends AbstractController
{
/**
* @var PlayerService $playerService
*/
protected $playerService;
public function __construct(PlayerService $playerService)
{
$this->playerService = $playerService;
}
public function playerRetention()
{
$records = $this->playerService->getPlayerRetention($this->request->all());
return $this->setData(['records' => $records])->success();
}
}