mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-21 22:57:31 +01:00
Fixed phpunit tests caused by typo in Autowire attribute
This caused the whole thing to behave very very weirdly
This commit is contained in:
@@ -36,7 +36,7 @@ final class RedirectToHttpsSubscriber implements EventSubscriberInterface
|
||||
{
|
||||
|
||||
public function __construct(
|
||||
#[Autowire('env(bool:REDIRECT_TO_HTTPS)')]
|
||||
#[Autowire('%env(bool:REDIRECT_TO_HTTPS)%')]
|
||||
private readonly bool $enabled,
|
||||
private readonly HttpUtils $httpUtils)
|
||||
{
|
||||
@@ -45,7 +45,7 @@ final class RedirectToHttpsSubscriber implements EventSubscriberInterface
|
||||
public static function getSubscribedEvents(): array
|
||||
{
|
||||
return [
|
||||
KernelEvents::REQUEST => ['onKernelRequest', 0],
|
||||
KernelEvents::REQUEST => 'onKernelRequest',
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user