Update blueprint/extensions/blueprint/private/build/extensions/controller.build
This commit is contained in:
parent
49b319a4b6
commit
d8ec5aa87a
1 changed files with 35 additions and 35 deletions
|
@ -1,35 +1,35 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Pterodactyl\Http\Controllers\Admin\Extensions\[id];
|
namespace App\Http\Controllers\Admin\Extensions\[id];
|
||||||
|
|
||||||
use Illuminate\View\View;
|
use Illuminate\View\View;
|
||||||
use Illuminate\View\Factory as ViewFactory;
|
use Illuminate\View\Factory as ViewFactory;
|
||||||
use Pterodactyl\Http\Controllers\Controller;
|
use App\Http\Controllers\Controller;
|
||||||
use Pterodactyl\Services\Helpers\SoftwareVersionService;
|
use App\Services\Helpers\SoftwareVersionService;
|
||||||
|
|
||||||
use Pterodactyl\BlueprintFramework\Libraries\ExtensionLibrary\Admin\BlueprintAdminLibrary as BlueprintExtensionLibrary;
|
use App\BlueprintFramework\Libraries\ExtensionLibrary\Admin\BlueprintAdminLibrary as BlueprintExtensionLibrary;
|
||||||
|
|
||||||
class [id]ExtensionController extends Controller
|
class [id]ExtensionController extends Controller
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* [id]ExtensionController constructor.
|
* [id]ExtensionController constructor.
|
||||||
*/
|
*/
|
||||||
public function __construct(
|
public function __construct(
|
||||||
private BlueprintExtensionLibrary $blueprint,
|
private BlueprintExtensionLibrary $blueprint,
|
||||||
private SoftwareVersionService $version,
|
private SoftwareVersionService $version,
|
||||||
private ViewFactory $view
|
private ViewFactory $view
|
||||||
){}
|
){}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the extension index view.
|
* Return the extension index view.
|
||||||
*/
|
*/
|
||||||
public function index(): View
|
public function index(): View
|
||||||
{
|
{
|
||||||
$rootPath = "/admin/extensions/[id]";
|
$rootPath = "/admin/extensions/[id]";
|
||||||
return $this->view->make('admin.extensions.[id].index', [
|
return $this->view->make('admin.extensions.[id].index', [
|
||||||
'blueprint' => $this->blueprint,
|
'blueprint' => $this->blueprint,
|
||||||
'version' => $this->version,
|
'version' => $this->version,
|
||||||
'root' => $rootPath
|
'root' => $rootPath
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue