Skip to content

The environment ($env)

peterhorne edited this page Jul 2, 2012 · 1 revision

The environment is an array containing useful variables such as the method the user issued for the current request and the request URI. The environment is also a dependency container which enables middleware to inject dependencies such as database connections and logging objects into the environment for use elsewhere in the application.

Clone this wiki locally