mirror of
https://github.com/pterodactyl/panel.git
synced 2026-12-01 20:05:48 -05:00
23 lines
632 B
PHP
23 lines
632 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Pterodactyl\Services\Extensions;
|
|
|
|
/**
|
|
* Kept for extension code written against earlier scaffolds, which read settings through
|
|
* `app(ExtensionManager::class)->settings('<id>')`.
|
|
*
|
|
* @deprecated use the Pterodactyl\Facades\Extensions facade: `Extensions::settings('<id>')`
|
|
*/
|
|
class ExtensionManager
|
|
{
|
|
public function __construct(private readonly ExtensionRepository $extensions) {}
|
|
|
|
/** @deprecated use `Extensions::settings('<id>')` */
|
|
public function settings(string $identifier): ExtensionSettings
|
|
{
|
|
return $this->extensions->settings($identifier);
|
|
}
|
|
}
|