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
Dmitry Dorogin
28e7f31a37
Fixes #15046 : Throw an `yii\web\HeadersAlreadySentException` if headers were sent before web response
7 years ago
Robert Korulczyk
5a8c3d537b
Enable `phpdoc_summary` rule in php-cs-fixer config ( #14675 )
...
* Enable `phpdoc_summary` rule in php-cs-fixer config.
* Fix case in "PHPDoc".
7 years ago
Robert Korulczyk
1501c659ac
Add empty lines before return statements. ( #14682 ) [skip ci]
7 years ago
Sam
0017d9c660
Fixes #13780 : Added support for trusted proxies in `yii\web\Request`
7 years ago
Alexander Makarov
d38908fc13
Fixed #14469 : updated RFC links
7 years ago
Robert Korulczyk
fe8a0a6a2e
Enable `no_useless_else` rule in php-cs-fixer ( #14420 )
7 years ago
Brandon Kelly
6f03e8b692
Fixes #14298 : The default response formatter configs defined by `yii\web\Response::defaultFormatters()` now use the array syntax
7 years ago
Robert Korulczyk
ba0ab403b5
Added php-cs-fixer coding standards validation to Travis CI ( #14100 )
...
* php-cs-fixer: PSR2 rule.
* php-cs-fixer: PSR2 rule - fix views.
* Travis setup refactoring.
* Add php-cs-fixer to travis cs tests.
* Fix tests on hhvm-3.12
* improve travis config
* composer update
* revert composer update
* improve travis config
* Fix CS.
* Extract config to separate classes.
* Extract config to separate classes.
* Add file header.
* Force short array syntax.
* binary_operator_spaces fixer
* Fix broken tests
* cast_spaces fixer
* concat_space fixer
* dir_constant fixer
* ereg_to_preg fixer
* function_typehint_space fixer
* hash_to_slash_comment fixer
* is_null fixer
* linebreak_after_opening_tag fixer
* lowercase_cast fixer
* magic_constant_casing fixer
* modernize_types_casting fixer
* native_function_casing fixer
* new_with_braces fixer
* no_alias_functions fixer
* no_blank_lines_after_class_opening fixer
* no_blank_lines_after_phpdoc fixer
* no_empty_comment fixer
* no_empty_phpdoc fixer
* no_empty_statement fixer
* no_extra_consecutive_blank_lines fixer
* no_leading_import_slash fixer
* no_leading_namespace_whitespace fixer
* no_mixed_echo_print fixer
* no_multiline_whitespace_around_double_arrow fixer
* no_multiline_whitespace_before_semicolons fixer
* no_php4_constructor fixer
* no_short_bool_cast fixer
* no_singleline_whitespace_before_semicolons fixer
* no_spaces_around_offset fixer
* no_trailing_comma_in_list_call fixer
* no_trailing_comma_in_singleline_array fixer
* no_unneeded_control_parentheses fixer
* no_unused_imports fixer
* no_useless_return fixer
* no_whitespace_before_comma_in_array fixer
* no_whitespace_in_blank_line fixer
* not_operator_with_successor_space fixer
* object_operator_without_whitespace fixer
* ordered_imports fixer
* php_unit_construct fixer
* php_unit_dedicate_assert fixer
* php_unit_fqcn_annotation fixer
* phpdoc_indent fixer
* phpdoc_no_access fixer
* phpdoc_no_empty_return fixer
* phpdoc_no_package fixer
* phpdoc_no_useless_inheritdoc fixer
* Fix broken tests
* phpdoc_return_self_reference fixer
* phpdoc_single_line_var_spacing fixer
* phpdoc_single_line_var_spacing fixer
* phpdoc_to_comment fixer
* phpdoc_trim fixer
* phpdoc_var_without_name fixer
* psr4 fixer
* self_accessor fixer
* short_scalar_cast fixer
* single_blank_line_before_namespace fixer
* single_quote fixer
* standardize_not_equals fixer
* ternary_operator_spaces fixer
* trailing_comma_in_multiline_array fixer
* trim_array_spaces fixer
* protected_to_private fixer
* unary_operator_spaces fixer
* whitespace_after_comma_in_array fixer
* `parent::setRules()` -> `$this->setRules()`
* blank_line_after_opening_tag fixer
* Update finder config.
* Revert changes for YiiRequirementChecker.
* Fix array formatting.
* Add missing import.
* Fix CS for new code merged from master.
* Fix some indentation issues.
7 years ago
Carsten Brandt
be658f82bf
release version 2.0.12
7 years ago
micro-maureen
8eabff0698
#13975 : make documentation of current behaviour more clear [skip ci]
8 years ago
Carsten Brandt
5bbf372f85
cleanup some phpdoc
8 years ago
Sam Mousa
183ebc5985
Revert "Moved serialization of `Cookie` to `Cookie`. Added unit test for serialization / deserialization."
...
This reverts commit a2acd88efe
.
8 years ago
Sam Mousa
a2acd88efe
Moved serialization of `Cookie` to `Cookie`. Added unit test for serialization / deserialization.
8 years ago
Nikolay Oleynikov
ea75068a92
Fixes #13813 : Fixed PHP 7 compatibiltiy by adding support for passing instances of `Error` to the `yii\web\Response::setStatusCodeByException()`
8 years ago
yyxx9988
0770863209
Fixes #13820 : Add new HTTP status code 451
8 years ago
Alexander Makarov
bc59d5da85
Fixes #13707 : Fixed `\yii\web\ErrorHandler` and `\yii\web\ErrorAction` not setting correct response code to response object before rendering error view
8 years ago
Kyle McCarthy
0b3c066bd2
Fixes #13695 : `\yii\web\Response::setStatusCode()` method now returns the Response object itself
8 years ago
Carsten Brandt
c19b2f7dc8
release version 2.0.11
8 years ago
Alexey Rogachev
37f19a0256
Fixes #13300 , #13307 , #13310 , #13312
...
- Bug #13300 : Allow pjax with "data-pjax" with no value in `yii.js`.
- Bug #13307 : Preventing of race conditions in script filter in `yii.js` works incorrectly.
- Bug #13310 : Handle relative and absolute URLs coincidence in CSS filter in `yii.js`.
- Bug #13312 : `skipOuterContainers` option was incorrectly passed to pjax in `handleAction` in `yii.js`.
- Partially fixes #13299 .
Adds tests for #8014 , #11921 , #10974 , #11494 , #10358 , #10097 .
8 years ago
zalatov
deea3cf798
Fixes #12854 : Added `RangeNotSatisfiableHttpException` to cover HTTP error 416 file request exceptions
8 years ago
Robert Korulczyk
4aa935e69e
Fixes #12055 : Changed `boolean` to `bool` and `integer` to `int` in phpdoc
8 years ago
Boudewijn Vahrmeijer
32f4dc8997
Fixes #5385 : links created from classes to corresponding guide articles ( #12920 )
8 years ago
SilverFire - Dmitry Naumenko
e23a419732
PHPDocs updated
8 years ago
Alexander Makarov
4b43183df7
Fixes #10563 : Fixed forming `Content-Disposition` header for file downloads ( #12721 )
8 years ago
Carsten Brandt
4b40417972
improved docs about sendFile() in Request
8 years ago
Roman Grinyov
d8e0694aec
Added missing square bracket
8 years ago
dasmfm
91734ae83b
Fixes #11432 : Added HTTP status 421 "Misdirected Request" to list of statuses in `yii\web\Response`
...
Source: http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml
9 years ago
Klimov Paul
57ab949be5
`Response::redirect()` uses 200 status code if 'X-Ie-Redirect-Compatibility' header sent
9 years ago
SilverFire - Dmitry Naumenko
019587e544
yii\web\Response - fixed comparation bug introduced in #9670
9 years ago
SilverFire - Dmitry Naumenko
dc93ec3812
Bug #9670 : Fixed PJAX redirect in IE
9 years ago
Carsten Brandt
d9f8933737
added prettyPrint option to JsonResponseFormatter
...
fixes #9762
close #10412
9 years ago
kidol
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
9 years ago
SilverFire - Dmitry Naumenko
cd87d67f34
Global DOCS update: ~~~ replaced with ```
9 years ago
Alexander Makarov
5ab4f0f090
Better quotes usage in strings
...
- Use single quote where interpolation isn't necessary
- Use interpolation when it's better than concatenation
9 years ago
Carsten Brandt
6d9fe671de
various code style and whitespace adjustments
9 years ago
Alexander Mohorev
9e3d28a3d9
Fix spelling
9 years ago
Alexander Makarov
67658cf57d
Replaced static with $this in phpdoc since current IDEs are finally able to handle it correctly
9 years ago
Klimov Paul
886e99be11
Fixed `yii\web\Response::xSendFile()` does not reset format
9 years ago
Carsten Brandt
9a5abd923f
cleanup after #8171
10 years ago
Philippe Gaultier
be6c619de9
Fixes #8171 : Allow the user to enforce the fileSize to allow sending files which are not seekable. Needed when using S3 Stream Wrapper
10 years ago
Steven Michaels
748e68f98d
Fixing broken doc links to ContentNegotiator
10 years ago
Alexander Kochetov
4e8197e43f
Light Response refactoring
10 years ago
Alexander Makarov
0eecb6ab1e
Fixes #7529 : Fixed `yii\web\Response::sendContentAsFile()` that was broken in 2.0.3
10 years ago
Qiang Xue
07403d3f9d
Fixes #3723 : `yii\filters\PageCache` now supports caching response headers as well as non-HTML response content
10 years ago
slavcodev
9028bc5aa7
Fixed header Content-Type when response is empty
10 years ago
Qiang Xue
0a6cd6190b
Fixes #7051 : Added support for preventing swapping values between different cookies
10 years ago
sadgnome
0b4896929b
Fixed content-length in sendContentAsFile()
...
Fixed wrong Content-Length header when sending file using Response::sendContentAsFile().
10 years ago
Qiang Xue
96c4ec88ca
Fixes #6889 doc fix [skip ci]
10 years ago
DaSourcerer
0cf4e7494f
Removed Content-Transfer-Encoding from the list of default download headers
...
`Content-Transfer-Encoding` is not a valid HTTP header (cf [RFC 7230, section 3.3.1](http://tools.ietf.org/html/rfc7230#section-3.3.1 ), [RFC 7231, section 8.3](http://tools.ietf.org/html/rfc7231#section-8.3 ), [IANA Message Header Registry](http://www.iana.org/assignments/message-headers/message-headers.xhtml )). The correct HTTP pendant would be `Transfer-Encoding: identity`, which were entirely bogus.
10 years ago