662 Commits

Author SHA1 Message Date
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
be4c9ae5b8 it added also to detachBehavior() 2016-01-20 10:44:14 +03:00
187e44d3ba Update phpDoc Component::getBehavior().
Added `@return null`
2016-01-20 10:37:48 +03:00
40fc49bf16 remove obsolete @throw tags 2016-01-04 15:08:04 -05:00
b68613b746 Added support for events declared in interfaces #10108
Added guide in russian for events in interfaces
2015-12-27 23:07:36 +02:00
ba19858e58 move private state var also 2015-12-20 21:28:03 -05:00
83b61eae43 move "private" consts before generateRandomKey() 2015-12-20 21:25:33 -05:00
358e9115ed comment lstat 2015-12-20 21:21:34 -05:00
e7a888ad11 use file_get_contents and not magic numbers 2015-12-20 11:48:36 -05:00
1f41a2c9af Fixes #9878,9879,9880: Make \base\Security use random_bytes(), LibreSSL, mcrypt, limit OpenSSL to Windows, and to prefer password_hash() over crypt() 2015-12-19 13:13:23 +03:00
cd87d67f34 Global DOCS update: ~~~ replaced with ``` 2015-12-02 23:15:28 +02:00
e1509bfe73 Fix methods references 2015-11-25 12:04:43 +02:00
2d68840898 yii\base\Module::getLayoutPath() fixed code style 2015-11-21 19:33:16 +02:00
d08ef83e2a Controller->viewPath can be set, fixes #10086
Added setViewPath() that allows setting the base path for the
controller's views. Changed getViewPath() to return the value that was
explicitly set, before defaulting to the usual module-based path.
2015-11-21 19:28:06 +02:00
035a9ce0a8 Added yii\filters\auth\AuthMetod::optional property
Added `yii\base\ActionFilter::getActionId()` - code extracted from `ActionFilter::isActive()`
2015-11-19 19:00:12 +02:00
1b3770fd21 Use === instead of == where possible 2015-10-10 01:04:35 +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
c2f83da8d8 Fix phpdoc 2015-10-05 15:00:13 +06:00
a7ef39ca6b fix typo in documentation 2015-09-30 12:44:31 +02:00
cf2c722a1f update comments in \yii\base\Controller
I had problems with understanding of why AccessControll filter didn't work, as i wish, with PageCache. Then i remembered the quote "The validation rules are evaluated in the order they are listed." from guide http://www.yiiframework.com/doc-2.0/guide-input-validation.html#declaring-rules, but when i tried to redirect some certain user using beforeAction(), as you advised, it didn't work.

close #9717
2015-09-19 17:09:35 +02:00
00a8a6270e revised docs about Model::load()
thanks to @tom-- for review.
2015-08-12 16:01:41 +02:00
abc7dbbf0f added missing @since annotations 2015-08-04 12:40:12 +02:00
a2568d1ec8 updated some comments and @since annotations 2015-08-02 19:56:49 +02:00
6d9fe671de various code style and whitespace adjustments 2015-08-02 00:27:19 +02:00
9012aa66bf Fixed documentation according to Chg #4911 2015-07-29 12:42:56 +02:00
8ced2ba96a Fixes #8933: Yii is now able to properly handle HHVM fatal errors 2015-07-28 10:32:52 +03:00
d3bd7af956 improved documentation of Model::load() return value
fixes #8803
close #9216
2015-07-26 02:21:41 +02:00