diff options
| author | Murtaza Sultani <sultani@data-quest.de> | 2026-03-09 11:29:08 +0100 |
|---|---|---|
| committer | Murtaza Sultani <sultani@data-quest.de> | 2026-03-09 11:29:15 +0100 |
| commit | fd87882f00562bb451f6d3bdd2545a1d38222158 (patch) | |
| tree | f8291db26d2f8ea796049a84d6e5e654e69e3ef8 /lib/helpers.php | |
| parent | a882a47291cc8955fb622eab1b8296f4f086c116 (diff) | |
Rename studipApp back to appeloquent-demo
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); } |
