peliprint/app/Http/Controllers/Admin/Extensions/Blueprint/BlueprintExtensionController.php

31 lines
943 B
PHP
Raw Normal View History

<?php
namespace Pterodactyl\Http\Controllers\Admin\Extensions\Blueprint;
use Illuminate\View\View;
use Illuminate\View\Factory as ViewFactory;
use Pterodactyl\Http\Controllers\Controller;
use Pterodactyl\Services\Helpers\SoftwareVersionService;
use Pterodactyl\Services\Helpers\BlueprintVariableService;
class BlueprintExtensionController extends Controller
{
/**
* BlueprintExtensionController constructor.
*/
public function __construct(private SoftwareVersionService $version, private ViewFactory $view, private BlueprintVariableService $bp)
{
}
/**
* Return the admin index view.
*/
public function index(): View
{
$rootPath = "/admin/extensions/blueprint";
2023-02-21 04:36:33 -05:00
$license = $this->bp->licenseIsValid();
return $this->view->make('admin.extensions.blueprint.index', ['version' => $this->version, 'bp' => $this->bp, 'root' => $rootPath, 'license' => $license]);
}
}