Skip to content
Snippets Groups Projects
Commit dd904f39 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

fixes #3968

Closes #3968

Merge request studip/studip!2820
parent 1a392c45
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,7 @@ class DIContainer
/**
* Get the globally available instance of the container.
*
* @return static
* @return ContainerInterface
*/
public static function getInstance()
{
......
......@@ -14,13 +14,13 @@ use Psr\Container\ContainerInterface;
* ```
* $logger = app(LoggerInterface::class);
* ```
*
* @param string|null $entryId entry name or a class name
* @template T
* @param class-string<T>|string|null $entryId entry name or a class name
* @param 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.
*
* @return ContainerInterface|mixed either the DI container or the entry associated to the $entryId
* @return T|ContainerInterface|mixed either the DI container or the entry associated to the $entryId
*/
function app($entryId = null, $parameters = [])
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment