peliprint/app/Http/Controllers/Admin/Extensions/Blueprint/BlueprintExtensionController.php
purple 33d3403995 Replaced placeholder and added "global variables"
The replacement of the placeholder is just a work in progress. I've also discovered a few more things about PHP now, including how to do variables and stuff.
2023-02-19 19:30:47 +01:00

29 lines
872 B
PHP

<?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";
return $this->view->make('admin.extensions.blueprint.index', ['version' => $this->version, 'bp' => $this->bp, 'root' => $rootPath]);
}
}