Commit 281b71aa by Qiang Xue

Merge pull request #4074 from qiansen1386/patch-8

small mistakes in service locator guide.
parents f1b64f60 7a8c8df4
...@@ -34,7 +34,7 @@ $locator->set('db', [ ...@@ -34,7 +34,7 @@ $locator->set('db', [
'password' => '', '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 () { $locator->set('search', function () {
return new app\components\SolrService; return new app\components\SolrService;
}); });
......
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