-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[DependencyInjection] fix handling of empty DI extension configs #27710
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
Conversation
xabbuh
commented
Jun 25, 2018
Q | A |
---|---|
Branch? | 4.1 |
Bug fix? | yes |
New feature? | no |
BC breaks? | no |
Deprecations? | no |
Tests pass? | yes |
Fixed tickets | #27707 |
License | MIT |
Doc PR |
This will fix the issue reported in #27707. However, I am not sure if it is really a good idea to process all the |
lets skip those extensions / apply array_filter here: symfony/src/Symfony/Component/DependencyInjection/Compiler/ValidateEnvPlaceholdersPass.php Lines 68 to 70 in 5fe78a3
it only validates env placeholders which are not present in empty configs anyway. |
@ro0NL done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be even better with a test
Thank you @xabbuh. |
…onfigs (xabbuh) This PR was merged into the 4.1 branch. Discussion ---------- [DependencyInjection] fix handling of empty DI extension configs | Q | A | ------------- | --- | Branch? | 4.1 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #27707 | License | MIT | Doc PR | Commits ------- 05d4bcb fix handling of empty DI extension configs
This PR was merged into the 4.1 branch. Discussion ---------- [DependencyInjection] add missing test for #27710 | Q | A | ------------- | --- | Branch? | 4.1 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #27710 (review) | License | MIT | Doc PR | Commits ------- a265caf [DependencyInjection] add missing test for #27710
* 4.1: fixed typo [FrameworkBundle] fixed brackets position in method calls Add placeholder support in bootstrap 4 file fields [Form] Improve rendering of `file` field in bootstrap 4 [Form] Fix PHPDoc for FormConfigBuilder $dataClass argument [Security] Update user phpdoc on tokens [WebProfilerBundle] Fixed icon alignment issue using Bootstrap 4.1.2 suppress side effects in 'get' or 'has' methods of NamespacedAttributeBag [HttpFoundation] reset callback on StreamedResponse when setNotModified() is called [HttpFoundation] Fixed phpdoc for get method of HeaderBag fix typo in ContainerBuilder docblock [Form/Profiler] Massively reducing memory footprint of form profiling pages by removing redundant 'form' variable from view variables. [Console] correctly return parameter's default value on "--" [DependencyInjection] add missing test for #27710 [EventDispatcher] Clear orphaned events on TraceableEventDispatcher::reset Fix serialization of abstract items with groups across multiple entities