eerrrrrr
All checks were successful
CI - Build Tonehaus Docker image / tonehaus-ci-build (push) Successful in 1m57s

This commit is contained in:
2025-11-27 23:42:17 +00:00
parent 054e970df9
commit 1c98a634c3
50 changed files with 1666 additions and 593 deletions

View File

@@ -0,0 +1,27 @@
<?php
namespace App\Twig;
use App\Service\RegistrationToggle;
use Twig\Extension\AbstractExtension;
use Twig\Extension\GlobalsInterface;
/**
* Exposes frequently used configuration values to Twig templates.
*/
class AppSettingsExtension extends AbstractExtension implements GlobalsInterface
{
public function __construct(private readonly RegistrationToggle $registrationToggle)
{
}
public function getGlobals(): array
{
return [
'registration_enabled' => $this->registrationToggle->isEnabled(),
];
}
}