Documentation
Environments
The support of environments helps Monstra to make decisions based on the environment setting.
Environments list
Monstra has four predefined environments.Core::DEVELOPMENT
The development environment.Core::TESTING
The test environment.Core::STAGING
The staging environment.Core::PRODUCTION
The production environment.Set Your Environment
Setting your environment is done by setting theCore::$environment
in /monstra/bootstrap.php
Environments and Config
Based on the environment the Monstra is set to, the Monstra Core class looks for environment-specific defines and preloaded actions, filters, shortcodes. The Monstra Core class will look for the same file name in a directory that's named after the current environment.Here is an example to illustrate this:
boot/ ├── development/ │ ├── defines.php └── production/ └── defines.php