SXAPI Core : application

The application component is the main core component creating the application object.

Configuration

To configure your application, you should follow the configuration user guide,

Loading sequence

  1. Load tools library
  2. Load timer component and expose it as global $timer
  3. Load log component and expose it as global $log. Configuration is empty at this step.
  4. Construct main application $app object
  5. alias global $timer to $app.timer
  6. alias global $log to $app.log
  7. Load resource manager in $app.resources
  8. Load session manager in $app.session
  9. Load web server manager in $app.ws

Launch sequence

  1. Init application
  2. init process signals for catching process signals
  3. check environments variables
  4. load config profile from environement variable SXAPI_CONF or sxapi.yml
  5. init resources manager
    1. load each resource declared in config profile
    2. init each resource declared in config profile
  6. init session manager
  7. init web server manager
  8. Start application
  9. start resources manager
  10. start session manager
  11. start web server manager
  12. Execute callback function