Merge pull request #4074 from qiansen1386/patch-8

small mistakes in service locator guide.
This commit is contained in:
Qiang Xue
2014-06-26 13:21:50 -04:00

View File

@@ -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;
}); });