Skip to content

Commit 6afd832

Browse files
develthchalasr
authored andcommitted
feat: make responseType parameter accessible
1 parent d365eba commit 6afd832

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

src/DependencyInjection/Configuration.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,10 @@ private function createAuthorizationServerNode(): NodeDefinition
107107
->info('Whether to enable access token saving to persistence layer')
108108
->defaultTrue()
109109
->end()
110+
->scalarNode('response_type_class')
111+
->info("Define a custom ResponseType")
112+
->defaultValue(null)
113+
->end()
110114
->end()
111115
;
112116

src/DependencyInjection/LeagueOAuth2ServerExtension.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ private function configureAuthorizationServer(ContainerBuilder $container, array
126126
$config['private_key'],
127127
$config['private_key_passphrase'],
128128
false,
129-
]));
129+
]))
130+
->replaceArgument(5, new Reference($config['response_type_class']));
130131

131132
if ($config['enable_client_credentials_grant']) {
132133
$authorizationServer->addMethodCall('enableGrantType', [

src/Resources/config/services.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@
145145
service(ScopeRepositoryInterface::class),
146146
null,
147147
null,
148+
null,
148149
])
149150
->call('setEmitter', [service('league.oauth2_server.emitter')])
150151
->configurator(service(GrantConfigurator::class))

0 commit comments

Comments
 (0)