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
Robin Chalas b2e1415cab feature #21414 [Console] Display file and line on Exception (arno14)
This PR was merged into the 3.4 branch.

Discussion
----------

[Console] Display file and line on Exception

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

When an exception occured:
If you have not set a verbose mode when running the command, you don't have information about the file and the line on which the exception occured.
So you must run a second time the command but the exception may not occured this time (if based on some databases datas which have changed) and it's a waste of time if you process is very long and the exception occured at the end.

The feature #21003 solve the problem if you are in a standard Symfony edition, if you leave the default settings and if you are in dev mode

Commits
-------

484d278 [Console] Display file and line on Exception
2017-09-03 17:31:40 +02:00
..
Command [Console] Add protected static $defaultName to set the default name of a Command 2017-08-24 16:43:56 +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] Add protected static $defaultName to set the default name of a Command 2017-08-24 16:43:56 +02:00
Descriptor Merge branch '3.2' into 3.3 2017-07-03 11:12:02 +03:00
Event [Console] Review console.ERROR related behavior 2017-04-25 10:16:45 -04:00
EventListener [Console] Log exit codes as debug messages instead of errors 2017-08-08 12:48:54 +02:00
Exception [Console] Fix infinite loop on missing input 2016-11-03 09:51:57 +01:00
Formatter Merge branch '2.8' into 3.3 2017-08-31 10:38:26 +02:00
Helper feature #22317 [Console] Make SymfonyQuestionHelper::ask optional by default (ro0NL) 2017-07-22 20:13:43 +02:00
Input Merge branch '3.2' into 3.3 2017-06-02 11:51:43 +02:00
Logger Merge branch '3.1' 2016-11-16 17:18:16 -05:00
Output Merge branch '2.8' into 3.2 2017-03-20 10:32:19 +01:00
Question Merge branch '2.8' into 3.2 2017-05-28 07:08:39 -07:00
Resources/bin Move hiddeninput.exe to Resources/bin 2012-10-16 11:08:11 +02:00
Style [Console] simplify the implementation of SymfonyStyle::comment() 2017-02-18 09:59:26 -08:00
Tester Merge branch '2.8' into 3.2 2017-04-04 09:26:27 +02:00
Tests feature #21414 [Console] Display file and line on Exception (arno14) 2017-09-03 17:31:40 +02:00
.gitignore Added missing files .gitignore 2013-07-21 14:12:18 +02:00
Application.php [Console] Display file and line on Exception 2017-09-03 17:13:41 +02:00
CHANGELOG.md [Console] Add protected static $defaultName to set the default name of a Command 2017-08-24 16:43:56 +02:00
composer.json Merge branch '3.3' into 3.4 2017-08-15 15:32:22 +02:00
ConsoleEvents.php [Console] Review console.ERROR related behavior 2017-04-25 10:16:45 -04:00
LICENSE updated LICENSE year 2017-01-02 12:30:00 -08: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.