diff options
Diffstat (limited to 'lib/helpers.php')
| -rw-r--r-- | lib/helpers.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/helpers.php b/lib/helpers.php index da143e5..9bfedb1 100644 --- a/lib/helpers.php +++ b/lib/helpers.php @@ -6,13 +6,13 @@ use Psr\Container\ContainerInterface; * This function returns the Dependency Injection container used. * * ``` - * $container = studipApp(); + * $container = app(); * ``` * * You may pass an entry name, a class or interface name to resolve it from the container: * * ``` - * $logger = studipApp(LoggerInterface::class); + * $logger = app(LoggerInterface::class); * ``` * @template T * @param T|class-string<T>|string|null $entryId entry name or a class name @@ -22,7 +22,7 @@ use Psr\Container\ContainerInterface; * * @return T|ContainerInterface|mixed either the DI container or the entry associated to the $entryId */ -function studipApp($entryId = null, $parameters = []) +function app($entryId = null, $parameters = []) { $container = \Studip\DIContainer::getInstance(); if (is_null($entryId)) { @@ -37,7 +37,7 @@ function studipApp($entryId = null, $parameters = []) */ function sess() : Studip\Session\Manager { - return studipApp()->get(Studip\Session\Manager::class); + return app()->get(Studip\Session\Manager::class); } /** @@ -45,5 +45,5 @@ function sess() : Studip\Session\Manager */ function auth() : Studip\Authentication\Manager { - return studipApp()->get(Studip\Authentication\Manager::class); + return app()->get(Studip\Authentication\Manager::class); } |
