Low priority issue
Working though the user guide (Slim 2.6.3) the Modes section states that “If Slim sees an environment variable named “SLIM_MODE”, it will set the application mode to that variable’s value.”
However, when I call $app->config(‘mode’) it returns the default “development” value.
I’ve tried using dotenv and even defining the variable on the line before the Slim object is initialised but the only way I can change the default value is adding a definition to the config array passed into the Slim constructor.
Just wanted to know if this is an issue or if I’ve missed something (wouldn’t be the first time).