Skip to content

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

Merged
merged 1 commit into from
Jan 12, 2017
Merged

Add a --show-arguments flag to the debug:container command #20861

merged 1 commit into from
Jan 12, 2017

Conversation

Cydonia7
Copy link
Contributor

@Cydonia7 Cydonia7 commented Dec 10, 2016

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)

@Cydonia7 Cydonia7 changed the title [WIP] Add a --show-arguments flag to the debug:container command Add a --show-arguments flag to the debug:container command Dec 11, 2016
@nicolas-grekas nicolas-grekas added this to the 3.3 milestone Dec 12, 2016
@nicolas-grekas
Copy link
Member

What about inline service definitions? (ie when $argument instanceof Definition?)

foreach ($this->getArgumentNodes($argument, $dom) as $childArgumenXML) {
$argumentXML->appendChild($childArgumenXML);
}
} else {
Copy link
Member

@chalasr chalasr Jan 2, 2017

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');
}

@Cydonia7
Copy link
Contributor Author

Cydonia7 commented Jan 12, 2017

Comments are addressed and PR is green (failures look unrelated)

Ping @dunglas

@dunglas
Copy link
Member

dunglas commented Jan 12, 2017

👍

@fabpot
Copy link
Member

fabpot commented Jan 12, 2017

Thank you @Cydonia7.

@fabpot fabpot merged commit 5c151d0 into symfony:master Jan 12, 2017
fabpot added a commit that referenced this pull request Jan 12, 2017
…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
@chalasr
Copy link
Member

chalasr commented Jan 14, 2017

This doesn't work for single service description, covered in #21290.
We should review twice when updating descriptors since there is a lot of cases to handle and following the code is a pain.

fabpot added a commit that referenced this pull request Jan 15, 2017
… 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
@fabpot fabpot mentioned this pull request May 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants