Skip to content

Latest commit

 

History

History
37 lines (29 loc) · 1.42 KB

File metadata and controls

37 lines (29 loc) · 1.42 KB

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
    1. alias global $timer to $app.timer
    2. alias global $log to $app.log
  5. Load resource manager in $app.resources
  6. Load session manager in $app.session
  7. Load web server manager in $app.ws

Launch sequence

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