Tom Klingenberg
e991c595b8
[Console] Improved checks for InputArgument and InputOption constructor's $mode parameter.
...
Check that $mode in InputArgument::__construct() is not below 1 to actually look if any of the flags are set.
Check that $mode in InputOption::__construct() is not below 1 to actually look if any of the flags are set.
Check for the correct parameter type, as in InputOption (integer).
InputArgumentTest: Added test for negative integer $mode parameter input in constructor.
InputOptionTest: Added test for negative integer $mode parameter input in constructor.
2011-08-31 23:53:00 +02:00
Fabien Potencier
283097db09
Revert "expanded namespaces within phpdoc (special for PhpStorm)"
...
This reverts commit 6e7439e73a
.
2011-08-13 19:27:36 +02:00
realmfoo
6e7439e73a
expanded namespaces within phpdoc (special for PhpStorm)
2011-08-10 11:16:31 +04:00
Michel Salib
1087792f7e
-- fix use of STDIN
2011-08-01 02:02:37 +02:00
Hugo Hamon
f2e4d35931
[Console] harmonized commands documentation by changing ./app/console to php app/console.
2011-07-28 10:01:57 +02:00
lenar
07298ac699
Detect EOF when reading input stream
...
[Console] Change back to fgets() in DialogHelper
2011-07-27 10:47:43 +03:00
Fabien Potencier
6a7359389d
removed usage of \Exception as PHPUnit won't allow to catch them anymore in the next major version
2011-07-11 11:54:00 +02:00
Fabien Potencier
59870bfe02
fixed typo
2011-07-07 09:42:47 +02:00
Fabien Potencier
3a5d508766
[Console] replaced fgets by stream_get_line in DialogHelper
...
Problem with fgets is that false means two things: an error or the end of the stream.
That's ok for STDIN, but it becomes a problem when using another stream (in a unit test for instance).
2011-07-07 09:41:45 +02:00
everzet
fa20b514a2
[Console] refactored definition printer
2011-07-06 15:44:24 +03:00
Fabien Potencier
01d583e889
[Console] fixed Command::setApplication() when the argument is null
2011-07-05 20:02:12 +02:00
Lenar Lõhmus
511a9a1fd7
Edited src/Symfony/Component/Console/Helper/DialogHelper.php via GitHub
2011-07-05 00:19:44 -07:00
Paul
924ea926ea
made command consistent with other help texts (it's now './app/console', instead of 'php app/console')
2011-07-04 20:18:08 +02:00
Paul
836134620b
Corrected help text from './symfony' to 'php app/console'
2011-07-04 20:06:30 +02:00
Laszlo Korte
6b72cda1a7
removed whitespace
2011-06-23 22:03:13 +02:00
Laszlo Korte
282a493af2
moved the constant from the interface back into the class
2011-06-23 21:57:47 +02:00
Laszlo Korte
7ec7fbefaa
fixed inteface name
2011-06-23 18:31:46 +02:00
Laszlo Korte
9a829242fb
[Console] Extract the OutputFormatter's regular expression into the inteface.
2011-06-23 18:14:54 +02:00
Fabien Potencier
f57e1d3e10
fixed CS
2011-06-23 14:07:53 +02:00
Fabien Potencier
6ab11eb1ce
[Console] decoupled Command from Application
2011-06-20 21:24:21 +02:00
Fabien Potencier
5744b520f7
[Console] added unit tests for DialogHelper
2011-06-20 19:05:56 +02:00
Gábor Egyed
3cfff4bfbe
[Console] fixed output formatter if content has line breaks
2011-06-18 02:07:44 +02:00
Fabien Potencier
54dd7966e6
[Console] added missing @api
2011-06-17 18:17:53 +02:00
Fabien Potencier
740b2ac833
[Console] added a --no-ansi option for disable ANSI output ( closes #1238 )
2011-06-08 10:26:48 +02:00
Fabien Potencier
c6cfd3aeb1
Merge remote branch 'Herzult/fixArrayOption'
...
* Herzult/fixArrayOption:
Simplify conditional block
[Command] Fix array option parsing
2011-06-07 19:55:53 +02:00
Fabien Potencier
d84728e278
[Console] removed the ? alias for help and fix a few bugs from the previous commit
2011-06-07 18:26:00 +02:00
Fabien Potencier
7d3e20d87d
[Console] removed the special treatment of aliases in Application
2011-06-07 18:14:15 +02:00
Fabien Potencier
facff73049
made the console tool more powerful
...
* The command names have now full support for nested namespaces. It means
that abbreviations work for each sub-namespace:
./app/console doctrine:mapping:info
# worked before
./app/console doctrine:map:in
# works now
./app/console doc:map:in
* Aliases are now first class citizen. They can have their own namespace,
like the main name. So, now, there is no difference between an alias and a
name.
* As names and aliases can be namespaced, the Command::getFullName() and
Command::getNamespace() method have been removed.
2011-06-07 17:51:43 +02:00
Antoine Hérault
d9f00ca7be
Simplify conditional block
2011-06-07 15:19:16 +02:00
Antoine Hérault
fb051b2f98
[Command] Fix array option parsing
2011-06-07 14:58:11 +02:00
Fabien Potencier
06804d3f1d
[Console] added mb_detect_encoding when needed
2011-06-04 18:20:20 +02:00
Fabien Potencier
18c3049fad
Merge remote branch 'brikou/console_formatter_helper'
...
* brikou/console_formatter_helper:
added mb_detect_encoding when formatting block (usefull when mb_internal_encoding is not properly set)
2011-06-04 18:19:11 +02:00
Fabien Potencier
79c6dc7937
[Console] fixed nested styles
2011-06-03 22:48:04 +02:00
Brikou CARRE
597a646347
added mb_detect_encoding when formatting block (usefull when mb_internal_encoding is not properly set)
2011-06-02 13:20:51 +02:00
Pascal Borreli
824e48efa7
[Various] Fixed phpdoc
2011-05-29 23:33:36 +00:00
Pascal Borreli
50d5e3e007
[Various] Fixed typos
2011-05-29 22:24:32 +00:00
Fabien Potencier
af2f9207be
[Console] fixed typo
2011-05-27 15:34:13 +02:00
Fabien Potencier
15bede5a63
[Console] refactored style management
...
The current code was broken when a style was defined inline:
<bg=black>Foo</bg=black>
When creatin a new style formatter, it's better to let the formatter
apply the style to the text.
2011-05-23 16:54:36 +02:00
Fabien Potencier
5ad2ff0595
[Console] added the possibility to pass a default value for DialodHelper::askAndValidate()
2011-05-20 08:24:54 +02:00
Fabien Potencier
b6a8f3a267
[Console] fixed typo
2011-05-17 10:27:02 +02:00
Fabien Potencier
6308f93c64
[Console] added some explanation on how DialogHelper::askAndValidate works
2011-05-17 10:26:33 +02:00
Hugo Hamon
c6bd284ecd
[Console] fixed phpdoc for Command class.
2011-04-30 22:17:30 +02:00
Eriksen Costa
164ce5210d
capitalized 'boolean'
2011-04-27 02:35:10 -03:00
Eriksen Costa
4db0752894
replaced 'bool' with 'Boolean'
2011-04-27 02:35:03 -03:00
Victor Berchet
f83e92bf44
Make casting scalar to array consistent
2011-04-26 12:16:35 +02:00
Pascal Borreli
8c0beea677
[Phpdoc] Cleaning/fixing
2011-04-23 15:18:47 +00:00
Pascal Borreli
b5769c52d6
Fixed various typo
2011-04-22 23:12:50 +00:00
Brikou CARRE
e898445b94
removed empty lines/trailing spaces
2011-04-15 21:12:02 +02:00
Fabien Potencier
514133a6bb
[Console] made ApplicationTester::getDisplay() work even in case of an error during execution and changed returned value of ApplicationTester to the command exit code
2011-04-03 23:46:08 +02:00
Fabien Potencier
dd158a2c99
[Console] made CommandTester::getDispaly() work even in case of an error during execution
2011-04-03 23:25:59 +02:00