Skip to content

Commit 9f224c7

Browse files
minor #57462 [FrameworkBundle] Lazy kernel.secret parameter resolving (yceruto)
This PR was merged into the 7.2 branch. Discussion ---------- [FrameworkBundle] Lazy `kernel.secret` parameter resolving | Q | A | ------------- | --- | Branch? | 7.2 | Bug fix? | no | New feature? | yes | Deprecations? | no | Issues | - | License | MIT symfony/symfony#56985 and symfony/recipes#1317 following up The goal of this PR is to fix the current compiler-errors about a missing `kernel.secret` parameter when it's not set at all. Thus, improving the first-time experience with minimalistic apps. Commits ------- 0284011717 Lazy kernel.secret parameter resolving
2 parents bc7ceef + ab5d785 commit 9f224c7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Resources/config/services.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
use Symfony\Component\Console\ConsoleEvents;
2424
use Symfony\Component\DependencyInjection\Config\ContainerParametersResourceChecker;
2525
use Symfony\Component\DependencyInjection\EnvVarProcessor;
26+
use Symfony\Component\DependencyInjection\Parameter;
2627
use Symfony\Component\DependencyInjection\ParameterBag\ContainerBag;
2728
use Symfony\Component\DependencyInjection\ParameterBag\ContainerBagInterface;
2829
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface;
@@ -154,7 +155,7 @@ class_exists(WorkflowEvents::class) ? WorkflowEvents::ALIASES : []
154155

155156
->set('uri_signer', UriSigner::class)
156157
->args([
157-
param('kernel.secret'),
158+
new Parameter('kernel.secret')
158159
])
159160
->alias(UriSigner::class, 'uri_signer')
160161

0 commit comments

Comments
 (0)