2023-09-03 09:33:39 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Pterodactyl\Http\Controllers\Admin;
|
|
|
|
|
|
|
|
use Illuminate\View\View;
|
|
|
|
use Illuminate\View\Factory as ViewFactory;
|
|
|
|
use Pterodactyl\Http\Controllers\Controller;
|
|
|
|
use Pterodactyl\Services\Helpers\SoftwareVersionService;
|
2023-09-07 10:17:04 -04:00
|
|
|
use Pterodactyl\BlueprintFramework\Libraries\ExtensionLibrary\Admin\BlueprintAdminLibrary;
|
2023-09-03 09:33:39 -04:00
|
|
|
|
|
|
|
class BaseController extends Controller
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* BaseController constructor.
|
|
|
|
*/
|
|
|
|
public function __construct(
|
|
|
|
private SoftwareVersionService $version,
|
|
|
|
private ViewFactory $view,
|
2023-09-07 10:21:27 -04:00
|
|
|
private BlueprintAdminLibrary $blueprint
|
2023-09-03 09:33:39 -04:00
|
|
|
)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Return the admin index view.
|
|
|
|
*/
|
|
|
|
public function index(): View
|
|
|
|
{
|
|
|
|
return $this->view->make('admin.index', [
|
|
|
|
'version' => $this->version,
|
|
|
|
'blueprint' => $this->blueprint
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
}
|