Update app/Http/Controllers/Admin/ExtensionsController.php
This commit is contained in:
parent
84685d8cc2
commit
391a7e6ebb
1 changed files with 38 additions and 38 deletions
|
@ -1,38 +1,38 @@
|
|||
<?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\BlueprintFramework\Services\PlaceholderService\BlueprintPlaceholderService;
|
||||
use Pterodactyl\BlueprintFramework\Libraries\ExtensionLibrary\Admin\BlueprintAdminLibrary as BlueprintExtensionLibrary;
|
||||
|
||||
class ExtensionsController extends Controller
|
||||
{
|
||||
/**
|
||||
* ExtensionsController constructor.
|
||||
*/
|
||||
public function __construct(
|
||||
private SoftwareVersionService $version,
|
||||
private ViewFactory $view,
|
||||
private BlueprintExtensionLibrary $ExtensionLibrary,
|
||||
private BlueprintPlaceholderService $PlaceholderService)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the admin index view.
|
||||
*/
|
||||
public function index(): View
|
||||
{
|
||||
return $this->view->make('admin.extensions', [
|
||||
'ExtensionLibrary' => $this->ExtensionLibrary,
|
||||
'PlaceholderService' => $this->PlaceholderService,
|
||||
|
||||
'version' => $this->version,
|
||||
'root' => "/admin/extensions",
|
||||
]);
|
||||
}
|
||||
}
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Admin;
|
||||
|
||||
use Illuminate\View\View;
|
||||
use Illuminate\View\Factory as ViewFactory;
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Services\Helpers\SoftwareVersionService;
|
||||
use App\BlueprintFramework\Services\PlaceholderService\BlueprintPlaceholderService;
|
||||
use App\BlueprintFramework\Libraries\ExtensionLibrary\Admin\BlueprintAdminLibrary as BlueprintExtensionLibrary;
|
||||
|
||||
class ExtensionsController extends Controller
|
||||
{
|
||||
/**
|
||||
* ExtensionsController constructor.
|
||||
*/
|
||||
public function __construct(
|
||||
private SoftwareVersionService $version,
|
||||
private ViewFactory $view,
|
||||
private BlueprintExtensionLibrary $ExtensionLibrary,
|
||||
private BlueprintPlaceholderService $PlaceholderService)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the admin index view.
|
||||
*/
|
||||
public function index(): View
|
||||
{
|
||||
return $this->view->make('admin.extensions', [
|
||||
'ExtensionLibrary' => $this->ExtensionLibrary,
|
||||
'PlaceholderService' => $this->PlaceholderService,
|
||||
|
||||
'version' => $this->version,
|
||||
'root' => "/admin/extensions",
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue