peliprint/app/Http/Controllers/Admin/ExtensionsController.php
purple 93c891a815 No approval of a $rootPath variable
i don't even know the actual use for the $rootPath variable
2023-03-29 10:28:51 +02:00

27 lines
777 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
{
return $this->view->make('admin.extensions', ['version' => $this->version, 'bp' => $this->bp, 'root' => "/admin/extensions"]);
}
}