2023-01-30 08:52:22 -05:00
|
|
|
<?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;
|
2023-02-19 13:30:47 -05:00
|
|
|
use Pterodactyl\Services\Helpers\BlueprintVariableService;
|
2023-01-30 08:52:22 -05:00
|
|
|
|
|
|
|
class BlueprintExtensionController extends Controller
|
|
|
|
{
|
2023-02-19 13:30:47 -05:00
|
|
|
|
2023-01-30 08:52:22 -05:00
|
|
|
/**
|
2023-02-19 13:30:47 -05:00
|
|
|
* BlueprintExtensionController constructor.
|
2023-01-30 08:52:22 -05:00
|
|
|
*/
|
2023-02-19 13:30:47 -05:00
|
|
|
public function __construct(private SoftwareVersionService $version, private ViewFactory $view, private BlueprintVariableService $bp)
|
2023-01-30 08:52:22 -05:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Return the admin index view.
|
|
|
|
*/
|
|
|
|
public function index(): View
|
|
|
|
{
|
2023-02-19 13:30:47 -05:00
|
|
|
$rootPath = "/admin/extensions/blueprint";
|
|
|
|
return $this->view->make('admin.extensions.blueprint.index', ['version' => $this->version, 'bp' => $this->bp, 'root' => $rootPath]);
|
2023-01-30 08:52:22 -05:00
|
|
|
}
|
|
|
|
}
|