This function returns the Dependency Injection container used.
You may pass an entry name, a class or interface name to resolve it from the container:
T
- Parameters
-
| T|class-string<T>|string|null | $entryId entry name or a class name |
array | $parameters | Optional parameters to use to build the entry. Use this to force specific parameters to specific values. Parameters not defined in this array will be resolved using the container. |
- Returns
- T|ContainerInterface|mixed either the DI container or the entry associated to the $entryId