-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[FrameworkBundle][Console] container:debug --parameter="" not working anymore #10345
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
Comments
please provide the error you get, thanks |
There is no error, it doesn't print anything :) |
yeah i just saw it 👶 👍 good catch |
The issue is that the Descriptor implementation is broken at https://github.com/symfony/symfony/blob/master/src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/Descriptor.php#L58 /cc @jfsimon |
@inalgnu good opportunity to raise code coverage here |
👍 |
…g --parameter="" not working anymore (FineWolf) This PR was merged into the 2.4 branch. Discussion ---------- [FrameworkBundle][Console] Fix issue #10345 container:debug --parameter="" not working anymore | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes* | Fixed tickets | #10345 | License | MIT | Doc PR | N/A ## TODO - [x] Fix issue #10345 - [ ] Create unit test for `describeContainerParameter` Commits ------- b278aa4 Fix issue #10345 '[FrameworkBundle][Console] container:debug --parameter="" not working anymore'
…:debug --parameter="" not working anymore'
* 2.4: Check headers sent before sending PHP response Fix issue symfony/symfony#10345 '[FrameworkBundle][Console] container:debug --parameter="" not working anymore' Fixed ACE domain checks on UrlValidator (#10031) handle array root element
* 2.4: Check headers sent before sending PHP response Fix issue symfony/symfony#10345 '[FrameworkBundle][Console] container:debug --parameter="" not working anymore' Fixed ACE domain checks on UrlValidator (#10031) handle array root element
* 2.4: Check headers sent before sending PHP response Fix issue symfony/symfony#10345 '[FrameworkBundle][Console] container:debug --parameter="" not working anymore' Fixed ACE domain checks on UrlValidator (#10031) handle array root element
…inalgnu) This PR was squashed before being merged into the 2.5-dev branch (closes #10370). Discussion ---------- [FrameworkBundle][Console] Add parameter descriptors | Q | A | ------------- | --- | Bug fix? | yes | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #10345 | License | MIT | Doc PR | n/a I've added several descriptors for each format, henceforth : ``php app/console container:debug --parameter=database_name --format=txt`` will output: ``symfony`` ``php app/console container:debug --parameter=database_name --format=json`` will output: ```json { "database_name": "symfony" } ``` ``php app/console container:debug --parameter=database_name --format=xml`` will output : ```xml <?xml version="1.0" encoding="UTF-8"?> <parameter key="database_name">symfony</parameter> ``` and ``php app/console container:debug --parameter=database_name --format=md`` will output : ```md database_name ============= symfony ``` what do you think ? Commits ------- 6aa1050 Add parameter descriptors
* master: (202 commits) fixed CS added missing unit test framework_bundle -> framework Add parameter descriptors fixed too greedy replacements fixed protocol-relative URLs added override power to server parameters provided on request method Add command to list twig functions, filters, globals and tests made parsing controllers more robust Improved ISBN validator fixed CS Move normalizer cache to getNormalier()/getDenormalizer(), use those in normalizeObject()/denormalizeObject() Fixed YamlFileLoader imports path symfony#1581 - Strict in Email constraint and use of Egulias\EmailValidator Check headers sent before sending PHP response Add UnprocessableEntityHttpException to HttpKernel Exceptions Fix issue symfony#10345 '[FrameworkBundle][Console] container:debug --parameter="" not working anymore' Added new validator for UUIDs Fixed ACE domain checks on UrlValidator (symfony#10031) handle array root element ...
…:debug --parameter="" not working anymore'
* 2.4: Check headers sent before sending PHP response Fix issue symfony/symfony#10345 '[FrameworkBundle][Console] container:debug --parameter="" not working anymore' Fixed ACE domain checks on UrlValidator (#10031) handle array root element
* 2.4: Check headers sent before sending PHP response Fix issue symfony/symfony#10345 '[FrameworkBundle][Console] container:debug --parameter="" not working anymore' Fixed ACE domain checks on UrlValidator (#10031) handle array root element
With
container:debug --parameter="database_name"
you can retreive the value of a parameter. This worked in 2.3.9 perfectly. But in 2.4.0 (and up) it doesn't work anymore.Steps to reproduce:
This works great:
But this doesn't return anything:
The text was updated successfully, but these errors were encountered: