-
Notifications
You must be signed in to change notification settings - Fork 325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RedisEnvDsn will break with Symfony 3.4/4.1 #356
Labels
bug
Not working as intended
Comments
+1 |
1 similar comment
+1 |
The break will be removed by symfony/symfony#24486 |
fabpot
added a commit
to symfony/symfony
that referenced
this issue
Oct 8, 2017
This PR was merged into the 3.4 branch. Discussion ---------- [DI] Remove colon from env placeholders | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | snc/SncRedisBundle#356 | License | MIT | Doc PR | - These colons in placeholders make them less neutral. Let's remove them. Commits ------- dca930f [DI] Remove colon from env placeholders
Reopening: version 4.1 did change the pattern of env placeholders. This bundle will break unless this is fixed. |
Hrm thanks for spotting it, we really should reconsider the entire mechanism for 3.x of this bundle. |
I will try to fix this in coming weeks for 2.1. |
B-Galati
added a commit
to B-Galati/SncRedisBundle
that referenced
this issue
Apr 28, 2018
fix snc#356 This is an internal detail that is not covered by the BC policy of Symfony and can thus break on any version We now detect if env variable is used by checking the 3rd parameter of method ContainerBuilder::resolveEnvPlaceholders
B-Galati
added a commit
to B-Galati/SncRedisBundle
that referenced
this issue
Apr 28, 2018
fix snc#356 This is an internal detail that is not covered by the BC policy of Symfony and can thus break on any version We now detect if env variable is used by checking the 3rd parameter of method ContainerBuilder::resolveEnvPlaceholders
B-Galati
added a commit
to B-Galati/SncRedisBundle
that referenced
this issue
Apr 28, 2018
fix snc#356 This is an internal detail that is not covered by the BC policy of Symfony and can thus break on any version We now detect if env variable is used by checking the 3rd parameter of method ContainerBuilder::resolveEnvPlaceholders
B-Galati
added a commit
to B-Galati/SncRedisBundle
that referenced
this issue
Apr 28, 2018
fix snc#356 This is an internal detail that is not covered by the BC policy of Symfony and can thus break on any version We now detect if env variable is used by checking the 3rd parameter of method ContainerBuilder::resolveEnvPlaceholders
B-Galati
added a commit
to B-Galati/SncRedisBundle
that referenced
this issue
Apr 28, 2018
fix snc#356 This is an internal detail that is not covered by the BC policy of Symfony and can thus break on any version We now detect if env variable is used by checking the 3rd parameter of method ContainerBuilder::resolveEnvPlaceholders
Still an issue in 2.1.3 |
B-Galati
added a commit
to B-Galati/SncRedisBundle
that referenced
this issue
Jun 3, 2018
B-Galati
added a commit
to B-Galati/SncRedisBundle
that referenced
this issue
Jun 16, 2018
B-Galati
added a commit
to B-Galati/SncRedisBundle
that referenced
this issue
Jun 16, 2018
B-Galati
added a commit
to B-Galati/SncRedisBundle
that referenced
this issue
Jun 16, 2018
B-Galati
added a commit
to B-Galati/SncRedisBundle
that referenced
this issue
Jun 25, 2018
curry684
pushed a commit
that referenced
this issue
Jun 25, 2018
curry684
pushed a commit
that referenced
this issue
Jul 19, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In https://github.com/snc/SncRedisBundle/blob/master/DependencyInjection/Configuration/RedisEnvDsn.php#L25
you hardcode the env placeholder regexp. This is an internal detail that is not covered by the BC policy and will change in 3.4 - thus the logic will break then.
The correct logic should use
$container->resolveEnvPlaceholders()
instead.The text was updated successfully, but these errors were encountered: