2023-04-05 15:29:58 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Pterodactyl\Http\Controllers\Admin\Extensions\␀id␀;
|
|
|
|
|
|
|
|
use Illuminate\View\View;
|
|
|
|
use Illuminate\View\Factory as ViewFactory;
|
|
|
|
use Pterodactyl\Http\Controllers\Controller;
|
|
|
|
use Pterodactyl\Services\Helpers\SoftwareVersionService;
|
|
|
|
|
|
|
|
use Pterodactyl\Services\Helpers\BlueprintExtensionLibrary;
|
|
|
|
|
|
|
|
class ␀id␀ExtensionController extends Controller
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* ␀id␀ExtensionController constructor.
|
|
|
|
*/
|
|
|
|
public function __construct(
|
|
|
|
private BlueprintExtensionLibrary $blueprint,
|
|
|
|
private SoftwareVersionService $version,
|
|
|
|
private ViewFactory $view
|
|
|
|
){}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Return the extension index view.
|
|
|
|
*/
|
|
|
|
public function index(): View
|
|
|
|
{
|
|
|
|
$rootPath = "/admin/extensions/␀id␀";
|
|
|
|
return $this->view->make('admin.extensions.␀id␀.index', [
|
|
|
|
'blueprint' => $this->blueprint,
|
|
|
|
'version' => $this->version,
|
|
|
|
'root' => $rootPath
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
}
|