File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/Bundle/JoseFramework/DependencyInjection/Source/KeyManagement Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 1414namespace Jose \Bundle \JoseFramework \DependencyInjection \Source \KeyManagement ;
1515
1616use Jose \Bundle \JoseFramework \DependencyInjection \Source \Source ;
17+ use Jose \Component \Console \JKULoaderCommand ;
1718use Symfony \Component \Config \Definition \Builder \ArrayNodeDefinition ;
1819use Symfony \Component \DependencyInjection \ContainerBuilder ;
1920use Symfony \Component \DependencyInjection \Loader \YamlFileLoader ;
@@ -40,7 +41,9 @@ public function load(array $configs, ContainerBuilder $container)
4041 if (true === $ configs [$ this ->name ()]['enabled ' ]) {
4142 $ loader = new YamlFileLoader ($ container , new FileLocator (__DIR__ .'/../../../Resources/config ' ));
4243 $ loader ->load ('jku_source.yml ' );
43- $ loader ->load ('jku_commands.yml ' );
44+ if (class_exists (JKULoaderCommand::class)) {
45+ $ loader ->load ('jku_commands.yml ' );
46+ }
4447 $ container ->setAlias ('jose.http_client ' , $ configs [$ this ->name ()]['client ' ]);
4548 $ container ->setAlias ('jose.request_factory ' , $ configs [$ this ->name ()]['request_factory ' ]);
4649 }
You can’t perform that action at this time.
0 commit comments