2023-04-05 15:29:58 -04:00
|
|
|
<?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;
|
2023-09-07 10:17:04 -04:00
|
|
|
use Pterodactyl\BlueprintFramework\Services\PlaceholderService\BlueprintPlaceholderService;
|
2023-09-07 15:12:33 -04:00
|
|
|
use Pterodactyl\BlueprintFramework\Libraries\ExtensionLibrary\Admin\BlueprintAdminLibrary as BlueprintExtensionLibrary;
|
2023-04-05 15:29:58 -04:00
|
|
|
|
|
|
|
class ExtensionsController extends Controller
|
|
|
|
{
|
2024-02-14 02:27:12 -05:00
|
|
|
/**
|
|
|
|
* ExtensionsController constructor.
|
|
|
|
*/
|
|
|
|
public function __construct(
|
|
|
|
private SoftwareVersionService $version,
|
|
|
|
private ViewFactory $view,
|
2024-03-10 17:26:41 -04:00
|
|
|
private BlueprintExtensionLibrary $ExtensionLibrary,
|
|
|
|
private BlueprintPlaceholderService $PlaceholderService)
|
2024-02-14 02:27:12 -05:00
|
|
|
{
|
|
|
|
}
|
2023-04-23 11:34:21 -04:00
|
|
|
|
2024-02-14 02:27:12 -05:00
|
|
|
/**
|
|
|
|
* Return the admin index view.
|
|
|
|
*/
|
|
|
|
public function index(): View
|
|
|
|
{
|
|
|
|
return $this->view->make('admin.extensions', [
|
2024-03-10 17:26:41 -04:00
|
|
|
'ExtensionLibrary' => $this->ExtensionLibrary,
|
|
|
|
'PlaceholderService' => $this->PlaceholderService,
|
|
|
|
|
2024-02-14 02:27:12 -05:00
|
|
|
'version' => $this->version,
|
|
|
|
'root' => "/admin/extensions",
|
|
|
|
]);
|
|
|
|
}
|
2023-04-05 15:29:58 -04:00
|
|
|
}
|