mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-02 13:02:24 +08:00
Extremely needed for handler maps and like.
Example container config:
```
return [
ContentTypeMiddleware::class => [
'__construct()' => [
Instance::of(StreamFactory::class),
[
'json' => Intance::of(JsonFormatter::class),
'yaml' => Intance::of(YamlFormatter::class),
],
],
],
];
```