Commit 5393fd0b by Alexander Makarov

Merge pull request #3347 from tsvetann/patch-2

[ci skip] Update concept-service-locator.md
parents 135b944c 981f895c
...@@ -10,7 +10,7 @@ In Yii, a service locator is simply an instance of [[yii\di\ServiceLocator]] or ...@@ -10,7 +10,7 @@ In Yii, a service locator is simply an instance of [[yii\di\ServiceLocator]] or
The most commonly used service locator in Yii is the *application* object which can be accessed through The most commonly used service locator in Yii is the *application* object which can be accessed through
`\Yii::$app`. The services it provides are called *application components*, such as the `request`, `response`, `\Yii::$app`. The services it provides are called *application components*, such as the `request`, `response`,
`urlManager` components. You may configure these components or even replace them with your own implementations easily `urlManager` components. You may configure these components or even replace them with your own implementations easily
through functionality provided the service locator. through functionality provided by the service locator.
Besides the application object, each module object is also a service locator. Besides the application object, each module object is also a service locator.
......
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