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 14
14
namespace Jose \Bundle \JoseFramework \DependencyInjection \Source \KeyManagement ;
15
15
16
16
use Jose \Bundle \JoseFramework \DependencyInjection \Source \Source ;
17
+ use Jose \Component \Console \JKULoaderCommand ;
17
18
use Symfony \Component \Config \Definition \Builder \ArrayNodeDefinition ;
18
19
use Symfony \Component \DependencyInjection \ContainerBuilder ;
19
20
use Symfony \Component \DependencyInjection \Loader \YamlFileLoader ;
@@ -40,7 +41,9 @@ public function load(array $configs, ContainerBuilder $container)
40
41
if (true === $ configs [$ this ->name ()]['enabled ' ]) {
41
42
$ loader = new YamlFileLoader ($ container , new FileLocator (__DIR__ .'/../../../Resources/config ' ));
42
43
$ loader ->load ('jku_source.yml ' );
43
- $ loader ->load ('jku_commands.yml ' );
44
+ if (class_exists (JKULoaderCommand::class)) {
45
+ $ loader ->load ('jku_commands.yml ' );
46
+ }
44
47
$ container ->setAlias ('jose.http_client ' , $ configs [$ this ->name ()]['client ' ]);
45
48
$ container ->setAlias ('jose.request_factory ' , $ configs [$ this ->name ()]['request_factory ' ]);
46
49
}
You can’t perform that action at this time.
0 commit comments