Erik Verheij
6f19d3d4a9
Fixes #12895 : Use custom error action when provided, regardless of the response format
...
Yii\web\ErrorHandler has the ability to set a custom action
for rendering errors. Now it uses that action regardless of the response
format. Previously the custom action was not triggered when the
response format was something other than FORMAT_HTML
6 years ago
Paul Klimov
e28bf15754
Fixes #11389 : `yii\base\Event` refactored to match commonly used notations
6 years ago
Mahesh S Warrier
f903fb2c0a
Fixes #16285 : Modified yii\web\XmlResponseFormatter to accept attributes for XML elements
6 years ago
Alexander Makarov
c184ef864e
Adjusted versioning
6 years ago
SilverFire - Dmitry Naumenko
1cc5f15635
Use null coalesce operator where possible
...
Added ternary_to_null_coalescing to php-cs-fixer config
Related to #11397
6 years ago
Ondřej Vašíček
ff83a13d57
Fixes #16068 : Fixed `yii\web\CookieCollection::has` when an expiration param is set to 'until the browser is closed'
6 years ago
Konstantin
e2627d19fd
Adjusted UploadedFile::getInstance() phpdoc [skip ci]
7 years ago
pgaultier
35ac718110
Fixes #16006 : Handle case when `X-Forwarded-Host` header have multiple hosts separated with a comma
7 years ago
Pavel Ivanov
b0b06b1ad3
Issue #15957 : dropped deprecated User::getAuthManager() method ( #15981 )
7 years ago
Pavel Ivanov
a0b3e2bc15
Issue #15957 : dropped deprecated Request::CSRF_MASK_LENGTH ( #15970 )
...
See also PR #13837
7 years ago
Vladimir Reznichenko
1a74b3d4f8
[minor] SCA with Php Inspections (EA Ultimate) ( #15871 )
...
* Php Inspections (EA Ultimate): use type casting where applicable
* Php Inspections (EA Ultimate): use constants where applicable
* Php Inspections (EA Ultimate): CS
* Php Inspections (EA Ultimate): address some of one-time used variables
* Php Inspections (EA Ultimate): address some of performance-related findings
* Php Inspections (EA Ultimate): address some of performance-related findings
* Php Inspections (EA Ultimate): revert a constant usage
* Php Inspections (EA Ultimate): revert sequential assignments
* Php Inspections (EA Ultimate): build is green again
* Php Inspections (EA Ultimate): revert array_merge tweaks
* Php Inspections (EA Ultimate): revert BC-incompatible one-time used variable tweak
* Update description [skip ci]
* Php Inspections (EA Ultimate): CS
7 years ago
Klimov Paul
fdd761d6cb
Added `yii\web\AssetConverter::$isOutdatedCallback` allowing custom check for outdated asset conversion result
7 years ago
Alexander Makarov
bf6c9cf443
Fixes #15783 : Regenerate CSRF token only when logging in directly
7 years ago
Klimov Paul
43c8f457ba
improve check for empty body at `Request::getParsedBody()`
7 years ago
Klimov Paul
854ae7127c
fix `web\Request::getParsedBody()` throws exception for empty body without content-type
7 years ago
Klimov Paul
d1ff652b2f
class DI definitions changed to '__class' keyword
7 years ago
Paul Klimov
603c084fbc
Fix #15383 drop PJAX ( #15809 )
...
PJAX support removed
7 years ago
Vladimir Reznichenko
f10cb6aeee
SCA with Php Inspections (EA Ultimate)
7 years ago
Vladimir Reznichenko
f9b03dfd42
SCA with Php Inspections (EA Ultimate)
7 years ago
bscheshirwork
7473c422ee
Fixes #15318 : Fixed "session_name(): Cannot change session name when session is active" errors
7 years ago
Paul Klimov
d86b716b08
unit test fix
7 years ago
SilverFire - Dmitry Naumenko
22832b7c49
release version 2.0.14
7 years ago
Alexander Makarov
d934d9f6f6
Improved phpdoc for ErrorHandler::$traceLine [skip ci]
7 years ago
Carsten Brandt
e493843b1c
improve `@deprecated` annotations
7 years ago
Carsten Brandt
ef8f6172bb
Added a note about URLManager cache duration
...
https://github.com/yiisoft/yii2/pull/13426#issuecomment-366078957
issue #13426
7 years ago
SilverFire - Dmitry Naumenko
2e8b6e5c80
Added ruleConfig to UrlManager::setBuiltRulesCache() to fix tests
7 years ago
SilverFire - Dmitry Naumenko
9323817a53
Refactored code, added tests
7 years ago
Aleksandar Belic
b566dd522c
Fixes #15272 : Removed type attribute from script tag
7 years ago
Alexander Makarov
25f8b263e5
Fixes #14811 : Fixed `yii\filters\HttpCache` to work with PHP 7.2
7 years ago
Brandon Kelly
e6f5c46cdc
Fixes #15633 : Deprecate some things going away/changing in 2.1
...
- Deprecated `yii\base\BaseObject::className()` in favor of native PHP syntax `::class`, which does not trigger autoloading
- Deprecated XCache and Zend data cache support as caching backends
- Deprecated `yii\BaseYii::powered()` method
- Added `yii\base\InvalidArgumentException` and deprecated `yii\base\InvalidParamException`
- Added `yii\BaseYii::debug()` and deprecated `yii\BaseYii::trace()`
7 years ago
Alexander Makarov
73fe41ee9f
Removed redundant condition
7 years ago
Alexander Makarov
47e43a1b63
Try reverting init()
7 years ago
Alexander Makarov
d86db78276
Extra checks
7 years ago
Alexander Makarov
7924a22490
Remove extra condition
7 years ago
Alexander Makarov
07e623e415
Don't use open() method because it registers handlers
7 years ago
Alexander Makarov
a23a325ca7
Fixes #15627 : Corrected session freezing/unfreezing not to attempt opening or closing connection if it isn't necessary
7 years ago
Alexander Makarov
64d57043b1
Fixes #11401 : Fixed `yii\web\DbSession` concurrency issues when writing and regenerating IDs
7 years ago
Brandon Kelly
2e55570e1f
Fixes #15621 : Fixed `yii\web\User::getIdentity()` returning `null` if an exception had been thrown when it was called previously
7 years ago
Alexander
24f4e3126a
Bug #15523 : `yii\web\Session` settings could now be configured after session is started (StalkAlex, rob006, daniel1302, samdark)
...
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
Co-authored-by: Robert Korulczyk <robert@korulczyk.pl>
Co-authored-by: daniel.1302 <daniel.1302@gmail.com>
7 years ago
Гордиенко Владислав Юрьевич
7cafa65ad2
Fixes #15216 : Added `yii\web\ErrorHandler::$traceLine` to allow opening file at line clicked in IDE
7 years ago
Alexander Makarov
7bafb7bf09
Fixes #14488 : Added support for X-Forwarded-Host to `yii\web\Request`, fixed `getServerPort()` usage
7 years ago
Dmitry Naumenko
d16586334d
Fixes #7640 : Implemented custom data types support. Added JSON support for MySQL and PostgreSQL, array support for PostgreSQL
7 years ago
Alexander Makarov
61b47014a2
Fixes #14643 : Added `yii\web\ErrorAction::$layout` property to conveniently set layout from error action config
...
Co-authored-by: Stas So <etc@swods.ru>
Co-authored-by: Carsten Brandt <mail@cebe.cc>
7 years ago
E.Alamo
e07219c812
Fixes #13996 : Added `yii\web\View::registerJsVar()` method that allows registering JavaScript variables
7 years ago
Klimov Paul
65f6b59b35
`@inheritdoc` notation changed
7 years ago
Paul Klimov
acce1db53b
Fixes #14135 : Fixed `yii\web\Request::getBodyParam()` crashes on object type body params
7 years ago
Alexander Makarov
6c0540aa2d
Fixes #15496 : CSRF token is now regenerated on changing identity
7 years ago
Elvira Sheina
3c017b6b61
Fixes #15462 : Fixed `accessChecker` configuration error
7 years ago
Vladimir Khramtsov
646cd73548
Fix code issues ( #15450 )
7 years ago
Paul Klimov
bf116e6103
Fix #8452 Jquery Extraction (attempt 2) ( #14865 )
...
* JQuery usage removed from `yii\web\View`
* assets moved to 'jquery'
* `GridViewClientScript` extracted
* `PunycodeAsset` moved to `jquery`
* `ActiveFormClientScript` extracted
* client validators extracted
* UPGRADE added
* fix unit tests
* fix JS unit tests
* path to captcha client validator fixed
* `ActiveFormClientScript::defaultClientValidatorMap()` added
* UPGRADE note extended
* `CompareValidator` adjusted
* `View::registerCsrfMetaTags()` restored
7 years ago