peliprint/app/Http/Controllers/Admin/ExtensionsController.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

28 lines
808 B
PHP

<?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;
use Pterodactyl\Services\Helpers\BlueprintVariableService;
class ExtensionsController extends Controller
{
/**
* ExtensionsController 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";
return $this->view->make('admin.extensions', ['version' => $this->version, 'bp' => $this->bp, 'root' => $rootPath]);
}
}