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
2018-03-12 01:37:19 +03:00
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()`
2018-02-11 01:48:29 +03:00
28e7f31a37
Fixes #15046 : Throw an yii\web\HeadersAlreadySentException
if headers were sent before web response
2017-12-20 00:31:59 +03:00
5a8c3d537b
Enable phpdoc_summary
rule in php-cs-fixer config ( #14675 )
...
* Enable `phpdoc_summary` rule in php-cs-fixer config.
* Fix case in "PHPDoc".
2017-08-21 11:19:35 +02:00
1501c659ac
Add empty lines before return statements. ( #14682 ) [skip ci]
2017-08-21 01:58:49 +03:00
0017d9c660
Fixes #13780 : Added support for trusted proxies in yii\web\Request
2017-08-17 13:14:51 +03:00
d38908fc13
Fixed #14469 : updated RFC links
2017-07-17 16:21:49 +03:00
fe8a0a6a2e
Enable no_useless_else
rule in php-cs-fixer ( #14420 )
2017-07-10 11:26:21 +03:00
6f03e8b692
Fixes #14298 : The default response formatter configs defined by yii\web\Response::defaultFormatters()
now use the array syntax
2017-06-21 02:04:39 +03:00
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.
2017-06-12 12:25:45 +03:00
be658f82bf
release version 2.0.12
2017-06-05 16:33:41 +02:00
8eabff0698
#13975 : make documentation of current behaviour more clear [skip ci]
2017-04-16 00:55:35 +03:00
5bbf372f85
cleanup some phpdoc
2017-04-04 10:33:30 +02:00
ea75068a92
Fixes #13813 : Fixed PHP 7 compatibiltiy by adding support for passing instances of Error
to the yii\web\Response::setStatusCodeByException()
2017-03-23 01:20:42 +03:00
0770863209
Fixes #13820 : Add new HTTP status code 451
2017-03-22 13:29:40 +03:00
bc59d5da85
Fixes #13707 : Fixed \yii\web\ErrorHandler
and \yii\web\ErrorAction
not setting correct response code to response object before rendering error view
2017-03-16 12:03:23 +03:00
0b3c066bd2
Fixes #13695 : \yii\web\Response::setStatusCode()
method now returns the Response object itself
2017-03-04 18:55:17 +03:00
c19b2f7dc8
release version 2.0.11
2017-02-01 17:46:29 +01:00
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 .
2017-01-25 11:00:13 +03:00
deea3cf798
Fixes #12854 : Added RangeNotSatisfiableHttpException
to cover HTTP error 416 file request exceptions
2016-12-02 00:51:49 +03:00
4aa935e69e
Fixes #12055 : Changed boolean
to bool
and integer
to int
in phpdoc
2016-11-07 02:51:39 +03:00
32f4dc8997
Fixes #5385 : links created from classes to corresponding guide articles ( #12920 )
2016-11-04 18:55:14 +03:00
e23a419732
PHPDocs updated
2016-10-12 20:29:32 +03:00
4b43183df7
Fixes #10563 : Fixed forming Content-Disposition
header for file downloads ( #12721 )
2016-10-12 11:41:21 +03:00
4b40417972
improved docs about sendFile() in Request
2016-08-23 10:00:01 +02:00
d8e0694aec
Added missing square bracket
2016-08-22 13:26:44 +03:00
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
2016-05-01 01:09:37 +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
dc93ec3812
Bug #9670 : Fixed PJAX redirect in IE
2015-12-26 10:19:22 +02: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
cd87d67f34
Global DOCS update: ~~~ replaced with ```
2015-12-02 23:15:28 +02: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
6d9fe671de
various code style and whitespace adjustments
2015-08-02 00:27:19 +02:00
9e3d28a3d9
Fix spelling
2015-06-29 23:13:15 +03:00
67658cf57d
Replaced static with $this in phpdoc since current IDEs are finally able to handle it correctly
2015-05-31 13:39:30 +03:00
886e99be11
Fixed yii\web\Response::xSendFile()
does not reset format
2015-05-29 16:29:06 +03:00
9a5abd923f
cleanup after #8171
2015-04-24 15:28:57 +02:00
be6c619de9
Fixes #8171 : Allow the user to enforce the fileSize to allow sending files which are not seekable. Needed when using S3 Stream Wrapper
2015-04-24 14:30:30 +03:00
1981a620d1
Merge pull request #7660 from creocoder/response-optimization
...
Light Response refactoring
2015-04-20 15:10:18 +03:00
748e68f98d
Fixing broken doc links to ContentNegotiator
2015-03-30 23:23:38 -05:00
4e8197e43f
Light Response refactoring
2015-03-10 22:51:44 +03:00
0eecb6ab1e
Fixes #7529 : Fixed yii\web\Response::sendContentAsFile()
that was broken in 2.0.3
2015-03-04 00:41:44 +03:00
07403d3f9d
Fixes #3723 : yii\filters\PageCache
now supports caching response headers as well as non-HTML response content
2015-02-21 19:45:44 -05:00
9028bc5aa7
Fixed header Content-Type when response is empty
2015-02-21 02:05:03 +03:00
0a6cd6190b
Fixes #7051 : Added support for preventing swapping values between different cookies
2015-01-28 22:29:37 -05:00
0b4896929b
Fixed content-length in sendContentAsFile()
...
Fixed wrong Content-Length header when sending file using Response::sendContentAsFile().
2015-01-25 20:07:11 -05:00
96c4ec88ca
Fixes #6889 doc fix [skip ci]
2015-01-17 19:12:48 -05:00
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.
2015-01-03 13:06:42 +01:00