|
|
@ -131,7 +131,7 @@ For example, |
|
|
|
|
|
|
|
|
|
|
|
// an anonymous function |
|
|
|
// an anonymous function |
|
|
|
function () { |
|
|
|
function () { |
|
|
|
return new \app\components\Profiler(); |
|
|
|
return new app\components\Profiler(); |
|
|
|
} |
|
|
|
} |
|
|
|
], |
|
|
|
], |
|
|
|
] |
|
|
|
] |
|
|
@ -143,7 +143,7 @@ For example, |
|
|
|
>```php |
|
|
|
>```php |
|
|
|
[ |
|
|
|
[ |
|
|
|
function () { |
|
|
|
function () { |
|
|
|
return \Yii::$app->getModule('user'); |
|
|
|
return Yii::$app->getModule('user'); |
|
|
|
}, |
|
|
|
}, |
|
|
|
] |
|
|
|
] |
|
|
|
``` |
|
|
|
``` |
|
|
|