Commit Graph

20 Commits

Author SHA1 Message Date
Carsten Brandt
a6d8222df1 for consistency: alwas return integer exit code
the default implementation of CConsoleCommand now always returns integer
exit code.
If for some reason someone does not want application to exit he could
overide run() method to return null or some other non integer value.
2012-04-27 22:28:01 +02:00
Carsten Brandt
2d1aa75bfe Yii::app()->end() is better than exit() 2012-04-27 19:33:44 +02:00
Carsten Brandt
86b75f31f1 Allowed returning exit code in console actions
Allowed returning integer values as application exit code in
CConsoleCommand actions.
Application will now exit with the given integer values as exit code.
This is better than just exit(1) because onAfterAction event is called
And you can use the return value when doing
Yii::app()->getCommandRunner()->run(...) to run a specific command
inside an other command.
2012-04-27 19:24:27 +02:00
Carsten Brandt
0f3ab344ac fixed typos and whitespace
documentation of stopCommand was just the other way round
2012-04-27 19:04:15 +02:00
alexander.makarow
646cbb2b9a Documented component accessors with @property for significantly better IDE autocomplete 2011-10-25 00:01:09 +00:00
alexander.makarow
589fb58fa3 (Fixes issue 2382) Fixed the bug that yiic wasn't able to run if there is no commands dir in application 2011-05-12 23:19:59 +00:00
alexander.makarow
2ab981b454 reverted method chaining support 2011-02-24 16:42:44 +00:00
alexander.makarow
75041e8620 Chained calls are now possible for most framework class setters and methods not returning a value 2011-02-23 20:20:28 +00:00
qiang.xue
4be0af6917 changed copyright year. 2011-01-01 19:31:13 +00:00
qiang.xue
bbfd0eeff3 Improved the error display in console command mode 2010-11-29 17:16:44 +00:00
mdomba
72b974560b Updated PHPDoc @param parameter names 2010-09-23 13:28:52 +00:00
qiang.xue
eb54ba7407 modified copyright info. 2010-01-07 21:02:00 +00:00
qiang.xue
8a610c51e0 merge from 1.0 2009-08-29 20:36:55 +00:00
qiang.xue
20bf28469f merge from 1.0. 2008-12-30 23:14:31 +00:00
qiang.xue
69949a36a5 2008-11-26 16:25:12 +00:00
qiang.xue
e4e93c9d6e 2008-11-25 14:25:53 +00:00
qiang.xue
cf9b8dec6a Changed Yii::t() and added a category parameter as its first parameter 2008-10-24 01:42:03 +00:00
qiang.xue
55bdd955a5 removed carriage returns from files. 2008-10-13 21:26:19 +00:00
qiang.xue
d8baee7a8f changed translatable message format from yii## to yii#.
changed how translatable messages in validators are specified.
updated message extractor command.
updated requirement checker.
2008-10-03 02:10:43 +00:00
qiang.xue
662798d8a5 2008-09-28 12:03:53 +00:00