Skip to content

Commit a46cf29

Browse files
authored
Fixed return type declarations in RestSessionBasedFactory
Symfony 5.4 forward compatibility, for more details see ezsystems/ezplatform-rest#87
1 parent 5205200 commit a46cf29

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/bundle/DependencyInjection/Security/RestSessionBasedFactory.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,22 +56,22 @@ protected function createListener($container, $id, $config, $userProvider)
5656
return $listenerId;
5757
}
5858

59-
protected function getListenerId()
59+
protected function getListenerId(): string
6060
{
6161
return 'ezpublish_rest.security.authentication.listener.session';
6262
}
6363

64-
public function getPosition()
64+
public function getPosition(): string
6565
{
6666
return 'http';
6767
}
6868

69-
public function getKey()
69+
public function getKey(): string
7070
{
7171
return 'ezpublish_rest_session';
7272
}
7373

74-
protected function createEntryPoint($container, $id, $config, $defaultEntryPoint)
74+
protected function createEntryPoint($container, $id, $config, $defaultEntryPoint): ?string
7575
{
7676
return $defaultEntryPoint;
7777
}

0 commit comments

Comments
 (0)