688 Commits

Author SHA1 Message Date
c1c11d06ae Revert "Fixed some comment issues (#13392) [skip ci]"
This reverts commit 652d05f0b8c4defa4f1bae29679322e3fbad1c0c.

`@property` comments are used to document the property that is
defined by a getter/setter if the method description does not fit.
2017-01-16 00:00:29 +01:00
Hao
652d05f0b8 Fixed some comment issues (#13392) [skip ci] 2017-01-15 21:39:12 +03:00
65e4a28800 consistent behavior for Yii::$app->controller and ->action (#13167)
Fixed inconsistency, `Yii::$app->controller` is available
after handling the request since 2.0.10, this is now also the case for
`Yii::$app->controller->action`.

fixes #12795
2016-12-08 18:00:05 +01:00
48c806fe1c added unit test for DynamicModel::load()
issue #12116
2016-12-07 00:21:00 +01:00
4735d4da6b Update DynamicModel.php
added note about limitations, i.e. no scenarios -> no safe attributes -> no load().
2016-12-07 00:08:08 +01:00
954c771fdb Code cleanup (#13113)
* Simplified code branching, named variable better

* More simple code cleanup

* More consistent line breaks before return statemetns
2016-12-03 00:15:53 +03:00
437825be70 Implemented Container::setDependencies(), Container::setDefinitions
Closes #11758
Closes #13029
2016-12-02 15:08:24 +02:00
b8b3aeeb00 update deprecated phpdoc messages 2016-11-22 16:03:28 +01:00
7a3a342127 Fix errors reported by apidoc extension. (#12986) 2016-11-13 14:51:21 +01: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
e8c16a09fa Fixed some typos (#12847) 2016-10-26 14:02:38 +03:00
5308aa1eee Fixes #12619: Added catch Throwable in yii\base\ErrorHandler::handleException() 2016-10-25 21:38:48 +03:00
8d05bd9479 yii\base\Application::$version converted to yii\base\Module::$version virtual property, allowing to specify version as a PHP callback
`yii\base\Application::$version` converted to `yii\base\Module::$version` virtual property, allowing to specify version as a PHP callback
2016-10-25 17:10:56 +03:00
8a452bcc2e Fixes #10587: Latest used controller instance was not available in Response::EVENT_AFTER_SEND handler 2016-10-19 12:02:55 +03:00
6c1fe1a137 Update Security.php
Corrected description for method decryptByKey().
2016-09-15 13:45:45 -03:00
eb02b362be Revert "Replaced extract() function usages with custom polyfill in order to fix HHVM compatibility"
This reverts commit f7bd7c2b6b1b9941e3c50d99e4f07ff17d513cca.
2016-09-07 11:33:57 +03:00
f7bd7c2b6b Replaced extract() function usages with custom polyfill in order to fix HHVM compatibility 2016-09-06 22:50:00 +03:00
48b0b962b8 Added yii\base\Event::offAll() method allowing clear all registered class-level event handlers 2016-09-05 12:46:43 +03:00
dbe284c618 Changed formatting of phpdoc. See #12409 2016-08-31 15:43:48 +03:00
f0c44bca91 Cosmetic changes 2 (#12409) [skip ci] 2016-08-31 14:53:17 +03:00
e97c798a4f fixed wrong docs about behaviors
fixes #12392
2016-08-30 11:40:15 +02:00
ba43ef370d Cosmetic changes 2016-08-26 16:00:51 +03:00
00e4470c42 Cosmetic changes 2016-08-23 09:46:22 +03:00
9f71bf400e Fixes #12038: Introduced yii\base\ViewNotFoundException which is thrown when views file doesn't exists, used it in ViewAction 2016-07-30 15:07:56 +03:00
8de6a5117c Fixed yii\base\Model::offsetExists() throws an exception on un-existing field 2016-07-28 12:33:16 +03:00
93f6ddfbe9 document the fact that widgets use output buffering
so they may break ob stack when end() and begin() are called in
different views.

close #11687
2016-07-04 12:12:44 +02:00
9585939d9f Fixes #11723: Fixed PHP 7 + XDebug error handling displaying "Expected array for frame 0" 2016-06-09 15:30:48 +03:00
9d327baa8b coding style fixes 2016-05-26 11:19:32 +02:00
e49bc29aa8 Update ActionFilter.php 2016-05-20 13:13:42 +02:00
7e7db38011 Fix #11591 ActionFilter wildcard (#11594)
* Added support for wildcards for `only` and `except` at `yii\base\ActionFilter`
2016-05-20 11:04:17 +02:00
d0a68883c7 phpDoc of $layout updated 2016-05-13 14:18:19 +03:00
e94b68436d complete test coverage for reading /dev/urandom
fixes an issue with buffered reading
2016-04-28 11:45:37 +02:00
f2f082dbab moved checks before random_bytes() to have consistent behavior accross php versions 2016-04-28 04:16:22 +02:00
0c6c1eebd1 Better buffer usage description as suggested by @tom--
https://github.com/yiisoft/yii2/pull/11285#discussion_r59960199
2016-04-16 12:45:23 +03:00
6a80a132e2 Converted constant into local variable #11285 2016-04-12 16:34:47 +03:00
81b18e1538 Fixed variable name 2016-04-06 10:59:17 +03:00
371440d59a More Security component enhancements
- Removed PHP version checks since both are met by default because Yii requires 5.4.0+.
- Limit PHP fread buffer in order to prevent entropy wasting.
- Fixed incorrect bytes to read calculation.
- Added more notes explaining decisions.
2016-04-06 03:35:52 +03:00
c455a3c54b Security component enhancements
- Added tests for random key generation speed.
- Better generateRandomKey() performance for small reads because of using fopen + buffered read and local caching of source detection.
- Use /dev/random on FreeBSD.
2016-04-06 01:49:07 +03:00
bfa7c7b13b Merge pull request #11262 from hiqsol/phar-compatibility
Enable use of yii2 inside of PHAR packaged console applications
2016-04-04 13:33:12 +03:00
e8d30f0c51 enable use of yii2 inside of phar packaged console applications 2016-04-04 10:32:50 +00:00
20de74d343 Fix spelling in Controller.php 2016-04-04 06:21:33 +02:00
ff37be0fb8 add doc summary for getUniqueID
This way it won't be empty in the table of methods.
2016-03-28 15:06:13 +02:00
aa0bf9a3c7 phpDoc: Added null to Controller::$layout 2016-03-23 16:37:42 +03:00
67b5f4ea19 fix for unsafe validator
Closes #8145 #8139 #11153
2016-03-22 23:31:16 +02:00
191f2a4943 fixed phpdoc type names 2016-02-25 20:24:32 +01:00
1f7134634b Use static:: instead of $this for static method calls 2016-02-16 14:06:23 +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
f620f4de90 phpdoc fixes 2016-02-07 19:48:13 +01:00
e8d309dddb documentation fixes for 2.0.7 2016-02-06 19:47:13 +01:00