Stud.IP  5.4
helpers.php File Reference

Functions

 app ($entryId=null, $parameters=[])
 

Function Documentation

◆ app()

app (   $entryId = null,
  $parameters = [] 
)

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
class-string<T>|string|null$entryId entry name or a class name
array$parametersOptional 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