Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[#2870] put back the command argument when executing a command in the Co... #3033

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

Closed
wants to merge 441 commits into from

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Oct 4, 2013

...mmandTester

Q A
Doc fix? yes
New docs? no
Applies to #2870
Fixed tickets

weaverryan and others added 30 commits May 5, 2013 19:38
Updated sidebar to use Debug component
Conflicts:
	components/console/helpers/progresshelper.rst
	reference/configuration/framework.rst
[2.3] Document Crawler::html method
Conflicts:
	components/filesystem.rst
[Components][Console] Fixed typos for table helper
Made the Icu component compatible with ICU 3.8
Conflicts:
	components/yaml/introduction.rst
Conflicts:
	components/yaml/introduction.rst
Conflicts:
	components/yaml/introduction.rst
@stof
Copy link
Member

stof commented Oct 5, 2013

In case the command has been retrieved from an Application, this is indeed required in 2.3 and below (but the command argument must be omitted in case you instantiate the command instance directly).

Symfony 2.4 simplified this by hiding the handling of the internal command argument inside the CommandTester.

@xabbuh
Copy link
Member Author

xabbuh commented Oct 5, 2013

Even in 2.3 this separation was not that clear. You only had to specify the command argument if the Command itself didn't require any argument. Otherwise, the first argument was treated as the command name, regardless how much sense this did make.

Thus, the new feature in 2.4 was in fact intended to fix this inconsistency.

xabbuh and others added 10 commits October 5, 2013 09:18
Fixed wrong redirection of virtuals -> inherit_data
Conflicts:
	book/forms.rst
	components/event_dispatcher/introduction.rst
	cookbook/configuration/front_controllers_and_kernel.rst
	cookbook/form/dynamic_form_modification.rst
	reference/configuration/framework.rst
	reference/constraints/Max.rst
	reference/constraints/MaxLength.rst
	reference/constraints/Min.rst
	reference/constraints/MinLength.rst
	reference/forms/types/choice.rst
	reference/forms/types/field.rst
	reference/forms/types/form.rst
	reference/forms/types/map.rst.inc
Conflicts:
	reference/constraints/Image.rst
@weaverryan
Copy link
Member

Thanks @xabbuh - it looks like this never should have been removed. I've patched your commit into the 2.2 branch at sha: 921a63b. Will this need to be changed in 2.4 due to symfony/symfony@50c8050?

@weaverryan weaverryan closed this Oct 14, 2013
@xabbuh xabbuh deleted the issue-2870 branch October 15, 2013 04:24
@xabbuh
Copy link
Member Author

xabbuh commented Oct 15, 2013

Well, we can remove it again in 2.4 and add a versionadded directive.

@xabbuh
Copy link
Member Author

xabbuh commented Oct 22, 2013

@weaverryan #3087 addresses the necessary changes for 2.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.