mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-29 14:28:42 +02:00
Allow to override the banner with its existing env variable
This commit is contained in:
parent
ae08d9539d
commit
ac89489202
6 changed files with 13 additions and 22 deletions
|
@ -30,7 +30,7 @@ use App\Settings\SystemSettings\CustomizationSettings;
|
|||
*/
|
||||
class BannerHelper
|
||||
{
|
||||
public function __construct(private CustomizationSettings $customizationSettings)
|
||||
public function __construct(private readonly CustomizationSettings $customizationSettings)
|
||||
{
|
||||
|
||||
}
|
||||
|
@ -43,4 +43,4 @@ class BannerHelper
|
|||
{
|
||||
return $this->customizationSettings->banner ?? "";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -49,6 +49,7 @@ class CustomizationSettings
|
|||
#[SettingsParameter(
|
||||
label: new TM("settings.system.customization.banner"),
|
||||
formType: RichTextEditorType::class, formOptions: ['mode' => 'markdown-full'],
|
||||
envVar: "BANNER", envVarMode: EnvVarMode::OVERWRITE,
|
||||
)]
|
||||
public ?string $banner = null;
|
||||
|
||||
|
@ -58,4 +59,4 @@ class CustomizationSettings
|
|||
)]
|
||||
#[ValidTheme]
|
||||
public string $theme = 'bootstrap';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue