mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-16 22:39:52 +08:00
Merge pull request #4074 from qiansen1386/patch-8
small mistakes in service locator guide.
This commit is contained in:
@@ -34,7 +34,7 @@ $locator->set('db', [
|
||||
'password' => '',
|
||||
]);
|
||||
|
||||
// register "db" using an anonymous function that builds a component
|
||||
// register "search" using an anonymous function that builds a component
|
||||
$locator->set('search', function () {
|
||||
return new app\components\SolrService;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user