590 Commits

Author SHA1 Message Date
e4d9ed5182 code style fix 2016-03-09 10:17:41 +02:00
c4e782725c Fixed cache key collision in yii\web\UrlManager::createUrl()
Closes #10935
2016-03-09 00:01:31 +02:00
191f2a4943 fixed phpdoc type names 2016-02-25 20:24:32 +01:00
1e1baec6e6 Reverted c478199 2016-02-25 12:14:22 +02:00
992bc264b6 Fixed PHPDoc 2016-02-25 00:20:55 +02:00
c478199937 Added property yii\web\DbSession::encodeData to encode/decode session data in base64 on session read/write
Closes #6173
2016-02-25 00:17:26 +02:00
7b46bd1f7c Fixes #10451: Check of existence of $_SERVER in \yii\web\Request before using it 2016-02-15 23:22:45 +03:00
1d43bb5421 Merge pull request #10852 from githubjeka/uploadfile_doc
phpDoc: return of UploadedFile::getInstance()
2016-02-15 13:29:38 +02:00
984c51ab1a Update phpDoc: return of UploadedFile::getInstance() / getInstanceByName() 2016-02-15 14:18:16 +03:00
9b5f6cb188 prepare for 2.0.7 release
- adjust version
- build classmap
- build phpdoc @property annotations
- build mime-type file
2016-02-14 15:45:55 +01:00
3d719d057e review yii\web namespaces docs 2016-02-12 16:21:32 +01:00
f620f4de90 phpdoc fixes 2016-02-07 19:48:13 +01:00
42b8569846 Revert DI injection via controller action method signature
reverts b7020065c and related commits.
reverts implementation of #9476

For reasons, see discussion https://github.com/yiisoft/yii2/issues/9476#issuecomment-179749039
2016-02-06 18:40:50 +01:00
fecd4dcfa5 10739 - Multiple slashes at the end of route should not be accepted as valid url 2016-02-05 16:38:49 +03:00
a0ca37ed6a 10545 - Fix for XMLResponseFormatter to format models in a proper way 2016-02-05 14:31:12 +03:00
8b9514fd5f Refactoring yii\web\Request::getMethod 2016-01-28 23:15:10 +03:00
ab25b8a358 10218 - Fix for session regenerate id issue that occured after user logged out #10218 2016-01-19 13:02:43 +03:00
57ab949be5 Response::redirect() uses 200 status code if 'X-Ie-Redirect-Compatibility' header sent 2016-01-08 16:32:09 +02:00
019587e544 yii\web\Response - fixed comparation bug introduced in #9670 2016-01-08 14:44:35 +02:00
0611ead043 Merge pull request #10483 from SilverFire/9670-ie-redirect
Bug #9670: Fixed PJAX redirect in IE
2015-12-31 10:33:17 +02:00
f29ba78a8f Merge pull request #10395 from AnatolyRugalev/issue-10255
Added warning to session component initialization
2015-12-26 10:33:56 +02:00
dc93ec3812 Bug #9670: Fixed PJAX redirect in IE 2015-12-26 10:19:22 +02:00
67cc16a07d AssetManager::publishDirectory - removed redundant is_dir check 2015-12-20 18:17:09 +02:00
01a6235059 #9333: Fixed AssetManager to publish bundles using symlink with nested directories in hash
Closes #9333
2015-12-20 16:24:40 +02:00
c39c0b3ddd returned shutdown handler to it's original place 2015-12-18 17:28:58 +05:00
ce94928a2c Enhancement to phpDoc of AssetManager 2015-12-18 10:21:34 +03:00
d9f8933737 added prettyPrint option to JsonResponseFormatter
fixes #9762
close #10412
2015-12-18 02:42:59 +01:00
603092db28 \yii\web\Response::sendHeaders() does not send status header last
to avoid php magic about Location: header to take effect.

Fixes #9412
close #9485
2015-12-17 06:13:41 +01:00
84702f1e6f 1. Added init() warning to session component
2. register_shutdown_function() for Session::close now only calls after successful session open
2015-12-15 12:12:27 +05:00
4a1a0fb4d8 FIX rule for camelCase controllerName
<controller:\w+>s
if use this variant of rule  you cant get controller with camelCase name as  camel-case
2015-12-09 23:57:01 +02:00
ccaa6efdc7 Merge pull request #9472 from schojniak/GroupUrlRule
GroupUrlRule: if $this->routePrefix is unset then only one trim is called
2015-12-05 21:26:12 +02:00
cd87d67f34 Global DOCS update: ~~~ replaced with ``` 2015-12-02 23:15:28 +02:00
45432cc653 #9528: added missing data provider for JSON formatter test, added changelog and upgrade note, added @since tag to new property 2015-11-25 05:52:15 +03:00
4f81b4a99d Fixes #9528: Traversable objects are now formatted as arrays in yii\web\XmlResponseFormatter to support SPL objects and Generators 2015-11-25 05:51:12 +03:00
7ac2bc13f7 Overrides c651dbb7. yii\web\ErrorHandler::loggableGlobals renamed to displayVars 2015-11-22 17:47:48 +02:00
c651dbb798 Added yii\web\ErrorHandler::loggableGlobals, removed $_ENV and $_SERVER from dumping by default 2015-11-22 17:14:16 +02:00
faa7a731c7 #10158: Remove defer attribute value from test case
Also fixed the CHANGELOG.md entry positionning
2015-11-19 13:05:13 +01:00
ac7b0ef6ff ErrorHandler - hardcoded UTF-8 in mb_* functions
As `Yii::$app` may be not initialized on the moment of error,
decided to hardcode UTF-8.

PR  #10169
2015-11-17 14:18:26 +02:00
06d499ab02 #10158: Accept arrays for 'js' as well
Also applied @samdark comments on array testing
2015-11-17 10:55:05 +01:00
a6e1ba2cf6 Fixed mb_ functions calls to use UTF-8 or app charset 2015-11-17 09:02:22 +02:00
cf01d5ff92 Use PHP type casting instead of ArrayHelper 2015-11-16 18:16:29 +01:00
5619e98eda Allow setting css options per CSS file in AssetBundle::, fixes #10158 2015-11-16 15:12:14 +01:00
e3c49f243c UrlRule::placeholders, UrlRule::substitutePlaceholderNames are now protected. Updated PHPDoc and UPDATE.md 2015-11-09 19:22:51 +02:00
289b051c4a Bug #9999: Fixed yii\web\UrlRule to allow route parameter names with -, _, .characters 2015-10-31 09:45:53 +02:00
fe4cbd30d6 Fixes #9803: Added option to register asset with scheme (reverted from commit 57dc8540fd0842a76196b92e6c86e1b3441d9c46) 2015-10-29 12:38:42 +03:00
57dc8540fd Fixes #9803: Added option to register asset with scheme 2015-10-28 14:08:56 +03:00
4bc2eb7945 Fixes controller DI 2015-10-12 15:52:19 +02:00
8260cfa4ea Compare with null instead of isset 2015-10-10 01:12:59 +03:00
5ab4f0f090 Better quotes usage in strings
- Use single quote where interpolation isn't necessary
- Use interpolation when it's better than concatenation
2015-10-10 00:23:52 +03:00
3a313ac652 Fixes #9874: Fixed outputting exception stacktrace in non-debug mode when Response::FORMAT_RAW is used 2015-10-09 23:41:15 +03:00