mirror of
https://github.com/koel/koel
synced 2025-01-07 02:08:46 +00:00
22 lines
591 B
PHP
22 lines
591 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\API\Interaction;
|
|
|
|
use App\Http\Controllers\Controller as BaseController;
|
|
use App\Models\User;
|
|
use App\Services\InteractionService;
|
|
use Illuminate\Contracts\Auth\Authenticatable;
|
|
|
|
class Controller extends BaseController
|
|
{
|
|
protected InteractionService $interactionService;
|
|
|
|
/** @var User */
|
|
protected ?Authenticatable $user = null;
|
|
|
|
public function __construct(InteractionService $interactionService, ?Authenticatable $currentUser)
|
|
{
|
|
$this->interactionService = $interactionService;
|
|
$this->user = $currentUser;
|
|
}
|
|
}
|