2015-12-06 18:58:49 +00:00
|
|
|
<?php
|
2016-12-07 22:46:38 +00:00
|
|
|
|
2015-12-06 18:58:49 +00:00
|
|
|
namespace Pterodactyl\Http\Controllers\Admin;
|
|
|
|
|
2017-12-15 03:05:26 +00:00
|
|
|
use Illuminate\View\View;
|
2016-12-07 22:46:38 +00:00
|
|
|
use Pterodactyl\Http\Controllers\Controller;
|
2017-08-24 02:34:11 +00:00
|
|
|
use Pterodactyl\Services\Helpers\SoftwareVersionService;
|
2015-12-06 18:58:49 +00:00
|
|
|
|
|
|
|
class BaseController extends Controller
|
|
|
|
{
|
2017-08-24 02:34:11 +00:00
|
|
|
/**
|
|
|
|
* BaseController constructor.
|
|
|
|
*/
|
2022-11-28 16:56:03 +00:00
|
|
|
public function __construct(private SoftwareVersionService $version)
|
2017-12-15 03:05:26 +00:00
|
|
|
{
|
2017-06-18 00:48:31 +00:00
|
|
|
}
|
|
|
|
|
2017-03-19 23:36:50 +00:00
|
|
|
/**
|
|
|
|
* Return the admin index view.
|
|
|
|
*/
|
2017-12-15 03:05:26 +00:00
|
|
|
public function index(): View
|
2015-12-06 18:58:49 +00:00
|
|
|
{
|
2022-11-28 16:56:03 +00:00
|
|
|
return view('admin.index', ['version' => $this->version]);
|
2015-12-06 18:58:49 +00:00
|
|
|
}
|
|
|
|
}
|