Commit 92d3c98c by Alexander Makarov

Merge pull request #697 from DavertMik/patch-1

A simple patch to get AspectMock and Go Aop working with Yii2
parents a23f2334 7f2d2da5
......@@ -120,7 +120,10 @@ class SecurityBase
static $keys;
$keyFile = Yii::$app->getRuntimePath() . '/keys.php';
if ($keys === null) {
$keys = is_file($keyFile) ? require($keyFile) : array();
$keys = array();
if (is_file($keyFile)) {
$keys = require($keyFile);
}
}
if (!isset($keys[$name])) {
$keys[$name] = static::generateRandomKey($length);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment