Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 919 Bytes

application-flow.md

File metadata and controls

19 lines (15 loc) · 919 Bytes

Application Flow (HTTP)

[Draft 2/26/2014 11:53:50 PM]

  1. Apache rewrite to public/index.php, or serve the file if it exists (images, css, etc).
  2. Check for down file (down for maintenance flag) and display maintenance file (maintenance.php) if applicable.
  3. Include the application bootstrap (include.php).
  4. Load the Composer autoloader.
  5. Load any files not autoloader compatible (i.e. function definitions).
  6. Load the local environment files (An error will occur if this does not exist), then the global environment files.
  7. Initialise, and return the application (to public/index.php).
  8. Dispatch the application [routes].

Routing Flow

  1. Iterate all routes.
  2. Detect if there is a valid response (render, redirect, etc).
  • If there is no response, add an appropriate response. Typically a 404 not found render/header response.
  1. Process/output the response.