Commit Graph

2118 Commits

Author SHA1 Message Date
Qiang Xue
769acfbdfb Merge pull request #550 from cebe/speed
Improve application speed by using classMap for autoloader
2013-06-17 13:54:19 -07:00
Alexander Makarov
7dfae28b81 fixes #549: ability to use HTMLPurifier multiple times 2013-06-18 00:24:40 +04:00
Alexander Makarov
ae419eafd6 updated basic app dependencies 2013-06-18 00:07:53 +04:00
Qiang Xue
3e6419108f Implemented language negotiation.
Implemented Request::getAcceptedContentTypes().
2013-06-17 15:51:30 -04:00
Qiang Xue
4782b19739 Better handling of sending response content. 2013-06-17 15:49:53 -04:00
Carsten Brandt
2fa52d8c67 rename classMap.php -> classes.php 2013-06-17 18:33:46 +02:00
Carsten Brandt
c68eef89b1 moved classMap to separate file 2013-06-17 17:57:53 +02:00
Carsten Brandt
2643daa534 Improve application speed by using classMap for autoloader 2013-06-17 16:38:21 +02:00
Qiang Xue
3e18479d1f Fixes issue #545: PageCache doesn't work. 2013-06-17 00:48:05 -04:00
Qiang Xue
f18d6df625 Revert "Merge pull request #548 from cebe/action-response"
This reverts commit 9d7597d61a, reversing
changes made to 6b6390f72b.
2013-06-16 19:45:58 -04:00
Qiang Xue
9d7597d61a Merge pull request #548 from cebe/action-response
implementation of Response tied to actions
2013-06-16 10:22:37 -07:00
Qiang Xue
6b6390f72b Merge pull request #547 from suralc/advanced-rename
Renamed some folders to fit changed app structure.
2013-06-16 10:14:15 -07:00
Carsten Brandt
71782b344e Changed existing code to match the changes regarding response 2013-06-16 18:52:56 +02:00
Carsten Brandt
b138199c59 implementation of Response tied to actions
Result of a discussion with @qiangxue
- there is not global Yii::$app->response anymore, every action has
  dedicated response class
- implementation allows using HMVC pattern now, nested actions do not
  interfer
2013-06-16 18:12:27 +02:00
Suralc
d8d9be7506 Renamed some folders to fit changed app structure. 2013-06-16 17:38:17 +02:00
Qiang Xue
75b614787c doc clarification. 2013-06-16 11:31:20 -04:00
Carsten Brandt
82c978f86a draft idea of action based responses 2013-06-16 17:04:28 +02:00
Qiang Xue
60abeb0d8f Renamed view to getView(). 2013-06-16 10:07:21 -04:00
Carsten Brandt
4ef19b2e79 static instead of self for creating instances
in UploadedFile::loadFilesRecursive
fixes #542
2013-06-16 10:33:23 +02:00
Carsten Brandt
0b294c6fd1 added missing view property to PageCache
fixes #544
2013-06-16 10:29:53 +02:00
Qiang Xue
d34301a308 Added public. 2013-06-15 18:34:09 -04:00
Qiang Xue
e543c5fdd0 Fixed test break. 2013-06-15 15:59:57 -04:00
Qiang Xue
2369019d22 Fixed test break. 2013-06-15 15:56:37 -04:00
Qiang Xue
3ec9553654 Fixed test break. 2013-06-15 15:54:26 -04:00
Qiang Xue
36f6ebab7f Fixes issue #539: Yii2 Csrf protection broken 2013-06-15 15:33:27 -04:00
Qiang Xue
5a8e4b648b Added XmlResponseFormatter. 2013-06-15 15:19:00 -04:00
Qiang Xue
fa198518e1 Merge branch 'master' of github.com:yiisoft/yii2 2013-06-15 08:24:26 -04:00
Qiang Xue
2d118a4c24 Added doc. 2013-06-15 08:24:21 -04:00
Qiang Xue
ecb703c370 Merge pull request #538 from cebe/handle-request
renamed Application::handle() to handelRequest()
2013-06-15 05:22:13 -07:00
Carsten Brandt
36184569a8 removed unnecessary check 2013-06-15 14:20:50 +02:00
Carsten Brandt
5ed52b98a1 renamed Application::handle() to handelRequest()
Name make more sense imo as it is not clear what it handles otherwise.
Removed unused method processRequest form console app and also refactored
console Application to be more similar to web Application.
2013-06-15 14:10:47 +02:00
Qiang Xue
03e07f4340 cleaned up "use" statements. 2013-06-14 22:42:55 -04:00
Qiang Xue
1181c1cc1b Removed unused methods. 2013-06-14 20:40:56 -04:00
Carsten Brandt
79e425bef3 Merge branch 'master' of github.com:yiisoft/yii2
* 'master' of github.com:yiisoft/yii2:
  Removed unused namespace.
  Put back Yii::getObjectVars() and fixed infinite loop in Object::toArray().
  Recursively return previous exceptions in toArray().
  Added previous exception in toArray().
  Removed headers in ErrorHandler.
2013-06-14 23:40:34 +02:00
Carsten Brandt
6c8f898a90 validator use static instead of self 2013-06-14 23:39:46 +02:00
Qiang Xue
e0789ecb82 Removed unused namespace. 2013-06-14 17:23:57 -04:00
Qiang Xue
d4910ee4f5 Put back Yii::getObjectVars() and fixed infinite loop in Object::toArray(). 2013-06-14 17:23:37 -04:00
Qiang Xue
b184a75d68 Recursively return previous exceptions in toArray(). 2013-06-14 17:15:28 -04:00
Qiang Xue
df0779fb14 Added previous exception in toArray(). 2013-06-14 17:10:36 -04:00
Qiang Xue
172f40aada Removed headers in ErrorHandler. 2013-06-14 17:06:01 -04:00
Qiang Xue
614c28ffb2 Merge branch 'master' of github.com:yiisoft/yii2 2013-06-14 17:02:06 -04:00
Qiang Xue
0c3bcc467d Moved toArray() from YiiBase to ArrayHelper. 2013-06-14 17:01:20 -04:00
Carsten Brandt
c2ac0f1c95 Merge pull request #537 from sergon/patch-4
fix MigrateController
2013-06-14 13:31:06 -07:00
gsd
1a46b8704c fix MigrateController 2013-06-15 02:28:18 +06:00
Qiang Xue
a951e1c8e1 Replaced Jsonable with Arrayable.
Added support for different response formats.
Support for error response in different formats.
2013-06-14 16:26:33 -04:00
Qiang Xue
075a6b6504 fixed how console color should be enabled. 2013-06-14 12:53:21 -04:00
Qiang Xue
725d810085 Refactored console controller color option. 2013-06-14 11:16:56 -04:00
Qiang Xue
f3cc5d1edc Fixes for issue #536: refactored error handler. 2013-06-14 08:19:45 -04:00
Carsten Brandt
12e5f62c0b Errorhandler, manually load classes
load ErrorException manually because autoloading them will not work
when error occurs while autoloading a class
2013-06-14 10:49:50 +02:00
Qiang Xue
420637443c Refactored the way of sending response in controller actions. 2013-06-13 23:39:18 -04:00