Architecture:MediaWiki/entry point layer

The entry point layer consists of all bits of code that are called immediately after initializing the runtime environment. This includes scripts that can be called directly from the command line, and scripts that can be called directly over the web, most notables index.php.

The entry point layer is the top-most layer. It causes the application to initialize, execute, and terminate. Code in the entry point layer typically interacts directly with the wiring layer and the interaction layer.

Status: As per April 2020, the entry points for web requests are well defined. Maintenance scripts to be run from the command line however all act as individual entry points, which is not ideal.

Constraints: No other layer may access code in the entry point layer.

Dependencies: Code in the behavior layer may depend on code in any other layer.

Typical patterns: An entry point often needs to initialize a service container and trigger an action handler.

Example: An example of entry layer code is.