. */ declare(strict_types=1); namespace App\Services\System; use App\Settings\SystemSettings\CustomizationSettings; /** * Helper service to retrieve the banner of this Part-DB installation */ class BannerHelper { public function __construct(private readonly CustomizationSettings $customizationSettings) { } /** * Retrieves the banner from either the env variable or the banner.md file. * @return string */ public function getBanner(): string { return $this->customizationSettings->banner ?? ""; } }