mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-09 01:27:20 +08:00
Merge pull request #7377 from softark/docs-guide-concept-fix
docs/guide/concept-service-locator.md - missing closing paren [ci skip]
This commit is contained in:
@ -63,7 +63,7 @@ If you call [[yii\di\ServiceLocator::get()]] with an invalid ID, an exception wi
|
|||||||
Because service locators are often being created with [configurations](concept-configurations.md),
|
Because service locators are often being created with [configurations](concept-configurations.md),
|
||||||
a writable property named [[yii\di\ServiceLocator::setComponents()|components]] is provided. This allows you
|
a writable property named [[yii\di\ServiceLocator::setComponents()|components]] is provided. This allows you
|
||||||
to configure and register multiple components at once. The following code shows a configuration array
|
to configure and register multiple components at once. The following code shows a configuration array
|
||||||
that can be used to configure a service locator (e.g. an [application](structure-applications.md) with
|
that can be used to configure a service locator (e.g. an [application](structure-applications.md)) with
|
||||||
the "db", "cache" and "search" components:
|
the "db", "cache" and "search" components:
|
||||||
|
|
||||||
```php
|
```php
|
||||||
|
|||||||
Reference in New Issue
Block a user