|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 T|ContainerInterface|mixed either the DI container or the entry associated to the $entryId */ function app($entryId = null, $parameters = []) { $container = \Studip\DIContainer::getInstance(); if (is_null($entryId)) { return $container; } return $container->make($entryId, $parameters); }