mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-04 15:26:43 +02:00
fix(analytics): set EpisodeAudioController to init user session data
This commit is contained in:
parent
998a8ee6b4
commit
77ccb30600
4 changed files with 166 additions and 117 deletions
|
|
@ -15,45 +15,11 @@ use App\Models\EpisodeModel;
|
|||
use CodeIgniter\Controller;
|
||||
use CodeIgniter\Exceptions\PageNotFoundException;
|
||||
use CodeIgniter\HTTP\RedirectResponse;
|
||||
use CodeIgniter\HTTP\RequestInterface;
|
||||
use CodeIgniter\HTTP\ResponseInterface;
|
||||
use Modules\Analytics\Config\Analytics;
|
||||
use Psr\Log\LoggerInterface;
|
||||
|
||||
class EpisodeAnalyticsController extends Controller
|
||||
{
|
||||
public mixed $config;
|
||||
|
||||
/**
|
||||
* An array of helpers to be loaded automatically upon class instantiation. These helpers will be available to all
|
||||
* other controllers that extend Analytics.
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected $helpers = ['analytics'];
|
||||
|
||||
protected Analytics $analyticsConfig;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*/
|
||||
public function initController(
|
||||
RequestInterface $request,
|
||||
ResponseInterface $response,
|
||||
LoggerInterface $logger
|
||||
): void {
|
||||
// Do Not Edit This Line
|
||||
parent::initController($request, $response, $logger);
|
||||
|
||||
set_user_session_deny_list_ip();
|
||||
set_user_session_location();
|
||||
set_user_session_player();
|
||||
|
||||
$this->config = config('Analytics');
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Replaced by EpisodeController::audio method
|
||||
* @deprecated Replaced by EpisodeAudioController::index method
|
||||
*/
|
||||
public function hit(string $base64EpisodeData, string ...$audioPath): RedirectResponse
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue