mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 09:35:49 +02: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:
parent
08e7e3f2bf
commit
6f24e7f077
1 changed files with 2 additions and 2 deletions
|
@ -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',
|
||||
];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue