-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Console] application/command as text/xml/whatever decoupling #7454
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
Changes from 1 commit
da67c12
f239b1c
bebf1eb
43b5e5c
acc7414
774794c
2066a9b
47fa194
8b56eb1
27aa872
30d8807
9964838
ef6d8ba
389101a
84be8de
ce5c0fd
49a4612
20c10a5
9c7b358
d3ec073
d70e086
ce60fb7
28f082e
cbb8105
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -562,7 +562,7 @@ public function getHelper($name) | |
* | ||
* @return string A string representing the command | ||
* | ||
* @deprecated | ||
* @deprecated Deprecated since version 2.3, to be removed in 3.0. | ||
*/ | ||
public function asText() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This also requires a BC layer |
||
{ | ||
|
@@ -578,7 +578,7 @@ public function asText() | |
* | ||
* @return string|\DOMDocument An XML string representing the command | ||
* | ||
* @deprecated | ||
* @deprecated Deprecated since version 2.3, to be removed in 3.0. | ||
*/ | ||
public function asXml($asDom = false) | ||
{ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,6 +77,10 @@ protected function execute(InputInterface $input, OutputInterface $output) | |
$this->command = $this->getApplication()->find($input->getArgument('command_name')); | ||
} | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
if ($input->getOption('xml')) { | ||
$input->setOption('format', 'xml'); | ||
} | ||
|
||
$helper = new DescriptorHelper(); | ||
$helper->describe($output, $this->command, $input->getOption('format'), $input->getOption('raw')); | ||
$this->command = null; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -409,7 +409,7 @@ public function getSynopsis() | |
* | ||
* @return string A string representing the InputDefinition | ||
* | ||
* @deprecated | ||
* @deprecated Deprecated since version 2.3, to be removed in 3.0. | ||
*/ | ||
public function asText() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removing the public method is a BC break. you should provide a BC layer There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I guess There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. right |
||
{ | ||
|
@@ -425,7 +425,7 @@ public function asText() | |
* | ||
* @return string|\DOMDocument An XML string representing the InputDefinition | ||
* | ||
* @deprecated | ||
* @deprecated Deprecated since version 2.3, to be removed in 3.0. | ||
*/ | ||
public function asXml($asDom = false) | ||
{ | ||
|
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.
you need to provide a BC layer to avoid the BC break