8 Commits

Author SHA1 Message Date
bc9a6f3e16 Better strtr arguments format 2013-09-16 23:20:17 +04:00
a8d21805f5 Security::generateRandomKey enhancements:
- Equals sign is now replaced with dot.
- Slash is now replaced with dash.
- Better phpdoc.
2013-09-16 01:49:54 +04:00
0284bc4a45 Fixes #875: Security::generateRandomKey() can now be safely used in URLs 2013-09-15 16:34:19 +04:00
3b8aff5a44 Blowfish cost must be in range 4…31, not 4…30
`generateSalt` parameter validation fix.
2013-08-26 20:49:23 +04:00
7f2d2da52c formatting fix 2013-07-31 23:01:11 +03:00
2a08297ac8 formatting fix 2013-07-31 22:47:45 +03:00
58083f6ed0 A simple patch to get AspectMock and Go Aop working with Yii2
This is a very tiny patch that changes nothing in code logic, but is required to get [AspectMock](https://github.com/Codeception/AspectMock) and Go Aop working with Yii2. 

Go Aop is processing all `include` and `require` directives, replacing them with its filters. Unfortunately it doesn't play well with one-liners. So I had to break the code into few lines to get that working. 

I was trying to fix this issue in [Go Aop](https://github.com/lisachenko/go-aop-php/pull/78) but looks like, the only option is to fix that in Yii2.

AspectMock can dramaticly improve unit testing in Yii2, and I plan to do a blogpost with tutorial about it.
2013-07-31 22:39:13 +03:00
a6cd7b72bb refactored helper organization. 2013-07-17 20:45:36 -04:00