This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/Console
Fabien Potencier 10e15dca66 feature #27821 [Process][Console] deprecated defining commands as strings (nicolas-grekas)
This PR was merged into the 4.2-dev branch.

Discussion
----------

[Process][Console] deprecated defining commands as strings

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | yes
| Tests pass?   | yes
| Fixed tickets | #27796
| License       | MIT
| Doc PR        | -

 * Added the `Process::fromShellCommandline()` static constructor to define shell command-lines
 * Allowed passing commands as `array($process, 'ENV_VAR' => 'value')` to `ProcessHelper::run()`
 * Deprecated passing commands as strings when creating a `Process` instance.
 * Deprecated the `Process::setCommandline()` and the `PhpProcess::setPhpBinary()` methods.
 * Deprecated passing a command as a string to `ProcessHelper::run()`, pass it the command as an array of arguments instead.
 * Made the `ProcessHelper` class final

Commits
-------

8895bc1b5b [Process][Console] deprecated defining commands as strings
2018-07-09 16:07:29 +02:00
..
Command Merge branch '3.4' into 4.0 2018-07-07 18:00:24 +02:00
CommandLoader [Console] Add a factory command loader for standalone application with lazy-loading needs 2017-07-15 10:43:17 +02:00
DependencyInjection [Console] Simplify parameters in DI 2017-12-24 07:06:54 +01:00
Descriptor [DI] Minor performance tweak in PriorityTaggedServiceTrait 2018-05-03 17:03:52 -07:00
Event fixed some deprecation messages 2017-12-31 06:50:45 +01:00
EventListener Fix PSR exception context key 2018-04-17 12:32:18 +03:00
Exception Revert "feature #26702 Mark ExceptionInterfaces throwable (ostrolucky)" 2018-05-30 09:26:09 +02:00
Formatter fixed some deprecation messages 2017-12-31 06:50:45 +01:00
Helper feature #27821 [Process][Console] deprecated defining commands as strings (nicolas-grekas) 2018-07-09 16:07:29 +02:00
Input Merge branch '4.0' 2018-04-20 13:04:56 +02:00
Logger Replace more docblocks by type-hints 2017-11-07 15:45:01 +01:00
Output Merge branch '4.0' into 4.1 2018-07-09 15:27:18 +02:00
Question Merge branch '3.4' 2017-11-19 20:43:46 +02:00
Resources/bin Move hiddeninput.exe to Resources/bin 2012-10-16 11:08:11 +02:00
Style Merge branch '4.0' into 4.1 2018-07-05 13:54:23 +02:00
Tester [Console] add setInputs to ApplicationTest and share some code 2017-11-12 07:57:03 +01:00
Tests [Process][Console] deprecated defining commands as strings 2018-07-06 20:45:13 +02:00
.gitignore Added missing files .gitignore 2013-07-21 14:12:18 +02:00
Application.php improve deprecation messages 2018-07-08 21:14:58 +02:00
CHANGELOG.md [Process][Console] deprecated defining commands as strings 2018-07-06 20:45:13 +02:00
composer.json updated version to 4.2 2018-05-07 16:51:25 +02:00
ConsoleEvents.php Merge branch '3.4' 2017-11-05 17:26:21 +01:00
LICENSE fixed years in copyright 2018-01-03 08:23:28 +01:00
phpunit.xml.dist Merge branch '2.7' into 2.8 2017-04-12 07:07:15 -07:00
README.md Updated all the README files 2016-03-04 08:12:06 +01:00
Terminal.php Allow terminal dimensions to be set to 0 (unbounded) 2017-04-11 16:41:42 +01:00

Console Component

The Console component eases the creation of beautiful and testable command line interfaces.

Resources

Credits

Resources/bin/hiddeninput.exe is a third party binary provided within this component. Find sources and license at https://github.com/Seldaek/hidden-input.