-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Add a --show-arguments flag to the debug:container command #20861
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
What about inline service definitions? (ie when |
foreach ($this->getArgumentNodes($argument, $dom) as $childArgumenXML) { | ||
$argumentXML->appendChild($childArgumenXML); | ||
} | ||
} else { |
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.
As pointed out, there should be something like:
} elseif ($argument instanceof Definition) {
$argumentXML->setAttribute('type', 'service');
}
Comments are addressed and PR is green (failures look unrelated) Ping @dunglas |
👍 |
Thank you @Cydonia7. |
…mand (Cydonia7) This PR was merged into the 3.3-dev branch. Discussion ---------- Add a --show-arguments flag to the debug:container command | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | not yet This PR adds a `--show-arguments` flag to the `debug:container` command that shows arguments in the services in the different available formats. (Ping @dunglas) Commits ------- 5c151d0 Add a --show-arguments flag to the container debug command
This doesn't work for single service description, covered in #21290. |
… missing cases (chalasr) This PR was merged into the 3.3-dev branch. Discussion ---------- [FrameworkBundle] Fix debug:container --show-arguments missing cases | Q | A | ------------- | --- | Branch? | 3.3 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #20861 (comment) | License | MIT | Doc PR | n/a Fixes the new `--show-arguments` option for per-service describing (i.e. `debug:container foo_service --show-arguments`, doesn't work at all right now). Commits ------- 57b17f4 [FrameworkBundle] Fix debug:container --show-arguments missing cases
This PR adds a
--show-arguments
flag to thedebug:container
command that shows arguments in the services in the different available formats.(Ping @dunglas)