Skip to content

Commit

Permalink
Add multi-environment configuration support (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
wietsedecnijf authored Apr 12, 2022
1 parent 56e4248 commit 0ca9de6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion DependencyInjection/SpomkyLabsLexikJoseExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,12 @@ public function loadEncryptionServices(ContainerBuilder $container): void
public function prepend(ContainerBuilder $container): void
{
$isDebug = $container->getParameter('kernel.debug');
$bridgeConfig = current($container->getExtensionConfig($this->getAlias()));
$bridgeConfig = $container->getExtensionConfig($this->getAlias());

$resolvingBag = $container->getParameterBag();
$bridgeConfig = $resolvingBag->resolveValue($bridgeConfig);

$bridgeConfig = $this->processConfiguration(new Configuration(), $bridgeConfig);
if (!array_key_exists('claim_checked', $bridgeConfig)) {
$bridgeConfig['claim_checked'] = [];
}
Expand Down

0 comments on commit 0ca9de6

Please sign in to comment.