Commit Graph

192 Commits

Author SHA1 Message Date
Alexander Makarov
a86d2ad11e Added yii\console\Controller::EXIT_CODE_NORMAL and yii\console\Controller::EXIT_CODE_ERROR constants, yii\console\MigrateController now returns yii\console\Controller::EXIT_CODE_ERROR in case of failed migration 2014-05-07 03:11:35 +04:00
Alexander Makarov
c7b05f0c22 Fixed inconsistent return of \yii\console\Application::runAction() 2014-05-07 03:11:35 +04:00
Alexander Makarov
ff3a20a785 Removed duplicate property 2014-05-06 21:02:35 +04:00
Jurmarcus Allen
6099e85160 HHVM compatibility Fixes for Yii 2 Console Application 2014-05-06 01:18:37 -05:00
Carsten Brandt
76d8e2b5b3 code style, fixes #3140 2014-04-17 13:24:16 +02:00
Klimov Paul
7f636fc525 yii\console\controllers\AssetController::actionTemplate() advanced to include jsCompressor and cssCompressor to the template. 2014-04-17 12:57:35 +03:00
Klimov Paul
72aba34210 yii\console\controllers\AssetController fixed to respect data URL resources 2014-04-17 12:11:34 +03:00
Thiago Talma
c1445871f4 Correction of many errors code inspection.
Adjustments code according to the standards.
Adding missing PHPDoc comment.
2014-04-16 19:29:07 -03:00
Carsten Brandt
c6e1a2f02f Merge branch 'master' of github.com:yiisoft/yii2
* 'master' of github.com:yiisoft/yii2: (79 commits)
  Refactored app bootstrap logic.
  Update authorization.md
  Fixes #3052: Fixed the issue that cache dependency data is not reused when `reusable` is set true
  start debug logging only if debug runs when bootstrap.
  Update finnish translation
  Add ODBC support to yii\db\Connection
  updated error handler and requirement checker links.
  fixed broken API links [skip ci]
  added more doc [skip ci]
  update class map.
  Fixes #2034: Added `ContentNegotiator` to support response format and language negotiation
  renamed attributes to attributeNames in model
  updated phpdoc
  Removed `Application::preload` in favor of `Application::bootstrap`
  Update module-debug.md
  Update model.md
  Fixes
  Update basics.md
  typo fix [skip ci]
  Added `HtmlResponseFormatter` and `JsonResponseFormatter`
  ...
2014-04-10 22:22:36 +02:00
Carsten Brandt
3c400dbca8 fixed file PHPdoc
issue #3026
2014-04-10 22:10:59 +02:00
Carsten Brandt
3fdcf11f24 updated phpdoc 2014-04-09 18:51:45 +02:00
Alexander Makarov
05afeb4831 Merge branch 'master' 2014-03-31 01:06:09 +04:00
Alexander Makarov
ab799d8ea9 Fixes #2911: Removed tbl_ default for table prefix 2014-03-30 19:33:46 +04:00
Carsten Brandt
a4b6fb263d handle Exceptions in application init() 2014-03-30 01:27:18 +01:00
Carsten Brandt
89f6a00147 created console errorHandler 2014-03-30 01:04:43 +01:00
Carsten Brandt
f2b20d99d5 Merge branch 'master' into refactor-errorhandler
* master:
  Fixes #2912: Relative view files will be looked for under the directory containing the view currently being rendered
  app end improvement.
  improvement of Application::end() handling.
  typo fix.
  Fixes #2910: Added `Application::end()`

Conflicts:
	framework/base/Application.php
2014-03-30 00:27:51 +01:00
Carsten Brandt
8b4d4a0b25 cleanup web errorhandler 2014-03-29 23:02:35 +01:00
Qiang Xue
ac74fede28 Fixes #2910: Added Application::end() 2014-03-28 16:59:21 -04:00
Carsten Brandt
67dd874e0c renamed console controller optoins param $id to $actionId 2014-03-26 17:51:52 +01:00
Carsten Brandt
bf3c75147d reverted breaking PHPdoc codestyle changes
issue #2852
2014-03-23 20:51:09 +01:00
Qiang Xue
8e11ad0360 refactored code to use Instance::ensure() 2014-03-18 12:31:27 -04:00
Qiang Xue
72c99663ff Refactored container. 2014-03-18 11:49:52 -04:00
Qiang Xue
8c2e39235f Turn module and application into DI containers. 2014-03-17 23:57:01 -04:00
SonicGD
b5f8a4dc22 Reformat code te be PSR-2 compatible 2014-03-16 10:46:21 +06:00
Qiang Xue
174158a64b doc fix [skip ci] 2014-03-13 21:28:11 -04:00
Christian Nadolle
0051a1ece4 sort options by action in Migration controller 2014-03-09 22:47:05 +01:00
Christian Nadolle
706ab7f968 combine globalOptions() with local options into options($id)
adjust existing Console Controllers and docs
2014-03-09 22:45:04 +01:00
Christian Nadolle
b0d7559a8d console/Controller show help for local options 2014-03-09 00:43:12 +01:00
Christian Nadolle
05f7df3091 console/Controller support local options per action 2014-03-09 00:43:11 +01:00
Carsten Brandt
f7148c2d80 callback -> callable
this term is resolveable by the php docs when linking types in apidoc
2014-03-08 21:04:47 +01:00
Qiang Xue
bbea1ab19c Fixes #2629: Module::controllerPath is now read only, and all controller classes must be namespaced under Module::controllerNamespace 2014-03-07 10:35:15 -05:00
Carsten Brandt
740a769477 improved HelpController with messages for each command 2014-03-06 22:43:57 +01:00
Alexander Makarov
51d6db7d80 Merge pull request #2607 from mitalcoi/db_message_source
enchansment of db message source
2014-03-04 20:08:40 +03:00
Sorokin Victor
1a14ed2127 Update MessageController.php 2014-03-04 12:40:13 +02:00
Sorokin Victor
4d4a3f0804 Update MessageController.php 2014-03-04 12:36:54 +02:00
AlexGx
6d72c6a723 fix code style 2014-03-04 06:27:22 +02:00
AlexGx
eaaa5b1bb5 fix code style 2014-03-04 06:12:30 +02:00
AlexGx
c047fbe0df fix code style No space found after comma in function call 2014-03-04 05:46:43 +02:00
AlexGx
c5ed024109 fix phpFoc, added missing param 2014-03-04 05:08:40 +02:00
Sorokin Victor
eba9049b61 Update MessageController.php
fix code style
2014-03-03 22:47:01 +02:00
mitalcoi
4906cd3432 enchansment of db message source 2014-03-03 22:43:56 +02:00
resurtm
65dd8c9e7e Add ability to downgrade migrations by the absolute apply time 2014-02-20 16:03:22 +06:00
Mark
325c7a18c4 improved fixture command 2014-02-09 18:30:49 +04:00
Qiang Xue
aeeee44f69 support loading config by alias. 2014-02-08 10:29:53 -05:00
Qiang Xue
bd70ac840f Fixes #2054: Added support for using custom application configuration with the console command runner 2014-02-07 21:58:24 -05:00
Sorokin Victor
a73953c05b Update FixtureController.php
typo fix
2014-02-06 16:22:39 +02:00
Qiang Xue
fbd7ea735d Merge pull request #2313 from Ragazzo/fixture_controller_global_fixtures_option
Fixture controller global fixtures option
2014-02-04 10:10:46 -08:00
Mark
663e898ba7 fixed docs, added checks 2014-02-04 21:00:52 +04:00
Qiang Xue
87b49414b1 Fixed globalOptions array issue. 2014-02-04 11:20:11 -05:00
Mark
cb8fc55a66 removed suffix, since it will be applied later in getFixturesConfig method. 2014-02-04 20:04:00 +04:00