Default support for BlueprintExtensionLibrary
This commit is contained in:
parent
0f95d98c37
commit
41c97472c2
1 changed files with 4 additions and 0 deletions
|
@ -7,12 +7,15 @@ use Illuminate\View\Factory as ViewFactory;
|
||||||
use Pterodactyl\Http\Controllers\Controller;
|
use Pterodactyl\Http\Controllers\Controller;
|
||||||
use Pterodactyl\Services\Helpers\SoftwareVersionService;
|
use Pterodactyl\Services\Helpers\SoftwareVersionService;
|
||||||
|
|
||||||
|
use Pterodactyl\Services\Helpers\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 SoftwareVersionService $version,
|
private SoftwareVersionService $version,
|
||||||
private ViewFactory $view
|
private ViewFactory $view
|
||||||
){}
|
){}
|
||||||
|
@ -24,6 +27,7 @@ class ␀id␀ExtensionController extends Controller
|
||||||
{
|
{
|
||||||
$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,
|
||||||
'version' => $this->version,
|
'version' => $this->version,
|
||||||
'root' => $rootPath
|
'root' => $rootPath
|
||||||
]);
|
]);
|
||||||
|
|
Loading…
Reference in a new issue