Skip to content

Commit 592184e

Browse files
konradobozabarw4
authored andcommitted
IBX-8558: Removed GuardRepositoryAuthenticationProvider due to Symfony security deprecations (#405)
For more details see https://issues.ibexa.co/browse/IBX-8558 and #405 Key changes: * IBX-8558: Removed `GuardRepositoryAuthenticationProvider` due to Symfony security deprecations
1 parent 7a51f9d commit 592184e

File tree

4 files changed

+1
-173
lines changed

4 files changed

+1
-173
lines changed

phpstan-baseline.neon

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -46765,31 +46765,6 @@ parameters:
4676546765
count: 1
4676646766
path: tests/lib/MVC/Symfony/Routing/UrlAliasRouterTest.php
4676746767

46768-
-
46769-
message: "#^Call to an undefined method Symfony\\\\Component\\\\Security\\\\Core\\\\Authentication\\\\Token\\\\TokenInterface\\:\\:getProviderKey\\(\\)\\.$#"
46770-
count: 1
46771-
path: tests/lib/MVC/Symfony/Security/Authentication/GuardRepositoryAuthenticationProviderTest.php
46772-
46773-
-
46774-
message: "#^Method Ibexa\\\\Tests\\\\Core\\\\MVC\\\\Symfony\\\\Security\\\\Authentication\\\\GuardRepositoryAuthenticationProviderTest\\:\\:testAuthenticate\\(\\) has no return type specified\\.$#"
46775-
count: 1
46776-
path: tests/lib/MVC/Symfony/Security/Authentication/GuardRepositoryAuthenticationProviderTest.php
46777-
46778-
-
46779-
message: "#^Method Ibexa\\\\Tests\\\\Core\\\\MVC\\\\Symfony\\\\Security\\\\Authentication\\\\GuardRepositoryAuthenticationProviderTest\\:\\:testAuthenticateUnsupportedToken\\(\\) has no return type specified\\.$#"
46780-
count: 1
46781-
path: tests/lib/MVC/Symfony/Security/Authentication/GuardRepositoryAuthenticationProviderTest.php
46782-
46783-
-
46784-
message: "#^Method Ibexa\\\\Tests\\\\Core\\\\MVC\\\\Symfony\\\\Security\\\\Authentication\\\\GuardRepositoryAuthenticationProviderTest\\:\\:testAuthenticateWrongGuardProviderKey\\(\\) has no return type specified\\.$#"
46785-
count: 1
46786-
path: tests/lib/MVC/Symfony/Security/Authentication/GuardRepositoryAuthenticationProviderTest.php
46787-
46788-
-
46789-
message: "#^Parameter \\#1 \\$token of method Ibexa\\\\Core\\\\MVC\\\\Symfony\\\\Security\\\\Authentication\\\\GuardRepositoryAuthenticationProvider\\:\\:authenticate\\(\\) expects Symfony\\\\Component\\\\Security\\\\Guard\\\\Token\\\\GuardTokenInterface, PHPUnit\\\\Framework\\\\MockObject\\\\MockObject&Symfony\\\\Component\\\\Security\\\\Core\\\\Authentication\\\\Token\\\\AnonymousToken given\\.$#"
46790-
count: 1
46791-
path: tests/lib/MVC/Symfony/Security/Authentication/GuardRepositoryAuthenticationProviderTest.php
46792-
4679346768
-
4679446769
message: "#^Method Ibexa\\\\Tests\\\\Core\\\\MVC\\\\Symfony\\\\Security\\\\HttpUtilsTest\\:\\:checkRequestPathProvider\\(\\) has no return type specified\\.$#"
4679546770
count: 1

src/lib/MVC/Symfony/Security/Authentication/GuardRepositoryAuthenticationProvider.php

Lines changed: 0 additions & 41 deletions
This file was deleted.

tests/bundle/Core/DependencyInjection/Compiler/SecurityPassTest.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,10 @@ protected function registerCompilerPass(ContainerBuilder $container): void
3737
$container->addCompilerPass(new SecurityPass());
3838
}
3939

40-
public function testAlteredDaoAuthenticationProvider(): void
40+
public function testAlteredHttpUtils(): void
4141
{
4242
$this->compile();
4343

44-
$this->assertContainerBuilderHasServiceDefinitionWithMethodCall(
45-
'security.authentication.provider.guard',
46-
'setPermissionResolver',
47-
[new Reference(PermissionResolver::class)]
48-
);
4944
$this->assertContainerBuilderHasServiceDefinitionWithMethodCall(
5045
'security.http_utils',
5146
'setSiteAccess',

tests/lib/MVC/Symfony/Security/Authentication/GuardRepositoryAuthenticationProviderTest.php

Lines changed: 0 additions & 101 deletions
This file was deleted.

0 commit comments

Comments
 (0)