System Modes
Cloudrexx is run in purpose-optimized modes. Each initialization of Cloudrexx (HTTP(S) Request, CLI command, RESTful-API-call and JsonData-calls) is executed/processed in one of the defined system modes. Each mode is optimized for a specific purpose and does therefore only execute a subset of the whole system components. The selection of the system mode is done automatically based on how the initialization has been triggered.
Modes
Mode | Description | Automatic invocation on... | Identifier | Bootstrapping |
---|---|---|---|---|
Frontend |
By default, Cloudrexx is run in Frontend mode. This mode is used to process regular HTTP(S)-requests made to the website (from web browsers). |
- All HTTP(S)-requests (except those to /cadmin and /api ) |
\Cx\Core\Core\Controller\Cx::MODE_FRONTEND |
- Stage 1 - Stage 2 - Stage 3 (Frontend) |
Backend |
The management interface (a.k.a Backend) is run in Backend system mode. |
- All HTTP(S)-requests to /cadmin - Legacy JsonData-calls |
\Cx\Core\Core\Controller\Cx::MODE_BACKEND |
- Stage 1 - Stage 2 - Stage 3 (Backend) |
Command |
Commands are executed in Command system mode. |
- All HTTP(S)-requests to /api - RESTful-API-calls - Invocation form CLI - JsonData-calls |
\Cx\Core\Core\Controller\Cx::MODE_COMMAND |
- Stage 1 - Stage 2 - Stage 3 (Command) |
Minimal |
Can be used to access the Cloudrexx framework in a standalone PHP-script. | - | \Cx\Core\Core\Controller\Cx::MODE_MINIMAL |
- Stage 1 - Stage 2 |
Manual Invocation
In a standalone PHP-script, the invocation of each mode can be forced as follows: