942285cab3
I also added a "legacy" extensionlibrary for backwards compatability for now.
32 lines
841 B
PHP
32 lines
841 B
PHP
<?php
|
|
|
|
namespace Pterodactyl\Http\Controllers\Base;
|
|
|
|
use Illuminate\View\View;
|
|
use Illuminate\View\Factory as ViewFactory;
|
|
use Pterodactyl\Http\Controllers\Controller;
|
|
use Pterodactyl\Contracts\Repository\ServerRepositoryInterface;
|
|
use Pterodactyl\BlueprintFramework\Libraries\ExtensionLibrary\Client\BlueprintClientLibrary;
|
|
|
|
class IndexController extends Controller
|
|
{
|
|
/**
|
|
* IndexController constructor.
|
|
*/
|
|
public function __construct(
|
|
protected ServerRepositoryInterface $repository,
|
|
protected ViewFactory $view,
|
|
private BlueprintClientExtensionLibrary $blueprint
|
|
) {
|
|
}
|
|
|
|
/**
|
|
* Returns listing of user's servers.
|
|
*/
|
|
public function index(): View
|
|
{
|
|
return $this->view->make('templates/base.core', [
|
|
'blueprint' => $this->blueprint,
|
|
]);
|
|
}
|
|
}
|