File tree Expand file tree Collapse file tree 6 files changed +5
-75
lines changed
DependencyInjection/Security Expand file tree Collapse file tree 6 files changed +5
-75
lines changed Original file line number Diff line number Diff line change 11
11
strategy :
12
12
matrix :
13
13
symfony-version :
14
- - " 4.4.*"
15
14
- " 5.1.*"
16
15
- " 5.2.*"
17
16
php-version :
Original file line number Diff line number Diff line change 4
4
<ImplicitToStringCast occurrences =" 1" >
5
5
<code >service(GrantConfigurator::class)</code >
6
6
</ImplicitToStringCast >
7
- <MixedInferredReturnType occurrences =" 1" >
8
- <code >ReferenceConfigurator</code >
9
- </MixedInferredReturnType >
10
- <MixedReturnStatement occurrences =" 1" >
11
- <code >($fn)($id)</code >
12
- </MixedReturnStatement >
13
7
</file >
14
8
<file src =" src/Security/Authenticator/OAuth2Authenticator.php" >
15
9
<PossiblyInvalidArgument occurrences =" 1" >
Original file line number Diff line number Diff line change 22
22
"league/oauth2-server" : " ^8.0" ,
23
23
"nyholm/psr7" : " ^1.4" ,
24
24
"psr/http-factory" : " ^1.0" ,
25
- "symfony/framework-bundle" : " ^4.4|^5.0 " ,
25
+ "symfony/framework-bundle" : " ^5.1 " ,
26
26
"symfony/psr-http-message-bridge" : " ^2.0" ,
27
- "symfony/security-bundle" : " ^4.4|^5.0 "
27
+ "symfony/security-bundle" : " ^5.1.1 "
28
28
},
29
29
"require-dev" : {
30
30
"ext-pdo" : " *" ,
31
31
"ext-pdo_sqlite" : " *" ,
32
32
"psalm/plugin-symfony" : " ^2.2" ,
33
- "symfony/browser-kit" : " ^4.4|^5.0 " ,
33
+ "symfony/browser-kit" : " ^5.1 " ,
34
34
"symfony/phpunit-bridge" : " ^5.2" ,
35
35
"vimeo/psalm" : " ^4.6"
36
36
},
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 6
6
7
7
use Doctrine \Bundle \DoctrineBundle \DependencyInjection \Compiler \DoctrineOrmMappingsPass ;
8
8
use League \Bundle \OAuth2ServerBundle \DependencyInjection \LeagueOAuth2ServerExtension ;
9
- use League \Bundle \OAuth2ServerBundle \DependencyInjection \Security \LegacyOAuth2Factory ;
10
9
use League \Bundle \OAuth2ServerBundle \DependencyInjection \Security \OAuth2Factory ;
11
- use Symfony \Bundle \SecurityBundle \DependencyInjection \Security \Factory \AuthenticatorFactoryInterface ;
12
10
use Symfony \Bundle \SecurityBundle \DependencyInjection \SecurityExtension ;
13
11
use Symfony \Component \DependencyInjection \ContainerBuilder ;
14
12
use Symfony \Component \HttpKernel \Bundle \Bundle ;
@@ -40,9 +38,7 @@ private function configureSecurityExtension(ContainerBuilder $container): void
40
38
{
41
39
/** @var SecurityExtension $extension */
42
40
$ extension = $ container ->getExtension ('security ' );
43
-
44
- // BC Layer for < 5.1 versions
45
- $ extension ->addSecurityListenerFactory (interface_exists (AuthenticatorFactoryInterface::class) ? new OAuth2Factory () : new LegacyOAuth2Factory ());
41
+ $ extension ->addSecurityListenerFactory (new OAuth2Factory ());
46
42
}
47
43
48
44
private function configureDoctrineExtension (ContainerBuilder $ container ): void
Original file line number Diff line number Diff line change 2
2
3
3
declare (strict_types=1 );
4
4
5
+ use function Symfony \Component \DependencyInjection \Loader \Configurator \service ;
5
6
use function Symfony \Component \DependencyInjection \Loader \Configurator \tagged_iterator ;
6
7
use League \Bundle \OAuth2ServerBundle \Command \ClearExpiredTokensCommand ;
7
8
use League \Bundle \OAuth2ServerBundle \Command \CreateClientCommand ;
54
55
use Symfony \Bridge \PsrHttpMessage \Factory \HttpFoundationFactory ;
55
56
use Symfony \Bridge \PsrHttpMessage \Factory \PsrHttpFactory ;
56
57
use Symfony \Component \DependencyInjection \Loader \Configurator \ContainerConfigurator ;
57
- use Symfony \Component \DependencyInjection \Loader \Configurator \ReferenceConfigurator ;
58
58
use Symfony \Component \EventDispatcher \EventDispatcherInterface ;
59
59
use Symfony \Component \Security \Core \Authentication \AuthenticationManagerInterface ;
60
60
use Symfony \Component \Security \Core \Authentication \Token \Storage \TokenStorageInterface ;
61
61
use Symfony \Component \Security \Core \Security ;
62
62
use Symfony \Component \Security \Core \User \UserProviderInterface ;
63
63
64
- // BC Layer for < 5.1 versions
65
- if (!function_exists ('service ' )) {
66
- function service (string $ id ): ReferenceConfigurator
67
- {
68
- $ fn = function_exists ('Symfony\Component\DependencyInjection\Loader\Configurator\service ' )
69
- ? 'Symfony\Component\DependencyInjection\Loader\Configurator\service '
70
- : 'Symfony\Component\DependencyInjection\Loader\Configurator\ref ' ;
71
-
72
- return ($ fn )($ id );
73
- }
74
- }
75
-
76
64
return static function (ContainerConfigurator $ container ): void {
77
65
$ container ->services ()
78
66
You can’t perform that action at this time.
0 commit comments