|
3 | 3 | This files contains examples for each interface. The factory class uses the `ConfigurationTrait` to retrieve options |
4 | 4 | from a configuration and optional to perform a mandatory option check or merge default options. There is also an |
5 | 5 | example for a independent config structure of the Zend Expressive TwigRendererFactory. The |
6 | | -[container-interop](https://github.com/container-interop/container-interop "Container Interoperability") specification |
| 6 | +[psr-11](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-11-container.md "Container Interoperability") specification |
7 | 7 | is used, so it's framework agnostic. |
8 | 8 |
|
9 | 9 | ## Use a vendor.package.id config structure |
@@ -42,7 +42,7 @@ Then you have easily access to the `orm_default` options in your method with `Co |
42 | 42 | ```php |
43 | 43 | use Interop\Config\ConfigurationTrait; |
44 | 44 | use Interop\Config\RequiresConfigId; |
45 | | -use Interop\Container\ContainerInterface; |
| 45 | +use Psr\Container\ContainerInterface; |
46 | 46 |
|
47 | 47 | class MyDBALConnectionFactory implements RequiresConfigId |
48 | 48 | { |
@@ -105,7 +105,7 @@ option `driverClass` and `params` are available. So we also implement in the exa |
105 | 105 | use Interop\Config\ConfigurationTrait; |
106 | 106 | use Interop\Config\RequiresMandatoryOptions; |
107 | 107 | use Interop\Config\RequiresConfigId; |
108 | | -use Interop\Container\ContainerInterface; |
| 108 | +use Psr\Container\ContainerInterface; |
109 | 109 |
|
110 | 110 | class MyDBALConnectionFactory implements RequiresConfigId, RequiresMandatoryOptions |
111 | 111 | { |
@@ -161,7 +161,7 @@ to our factory. The magic is done via the `__callStatic()` method. |
161 | 161 | use Interop\Config\ConfigurationTrait; |
162 | 162 | use Interop\Config\RequiresMandatoryOptions; |
163 | 163 | use Interop\Config\RequiresConfigId; |
164 | | -use Interop\Container\ContainerInterface; |
| 164 | +use Psr\Container\ContainerInterface; |
165 | 165 |
|
166 | 166 | class MyDBALConnectionFactory implements RequiresConfigId, RequiresMandatoryOptions |
167 | 167 | { |
@@ -364,7 +364,7 @@ configuration file from the factory. |
364 | 364 | ```php |
365 | 365 | namespace Zend\Expressive\Twig; |
366 | 366 |
|
367 | | -use Interop\Container\ContainerInterface; |
| 367 | +use Psr\Container\ContainerInterface; |
368 | 368 | use Twig_Environment as TwigEnvironment; |
369 | 369 | use Twig_Extension_Debug as TwigExtensionDebug; |
370 | 370 | use Twig_ExtensionInterface; |
|
0 commit comments