skyline/router

v0.8.2 2020-10-06 16:24 UTC

This package is auto-updated.

Last update: 2021-06-06 17:46:12 UTC


README

The router package is used by any Skyline Kernel Application after launch to route a request or what ever to an action controller, that is able to produce a response.

The routing process is initialized by a RouteEvent.
Register your routers as plugins to listen on the event manager.

The default routing workflow is:

  • Application must create a route event
  • The route event is triggered
  • The routers need to route it to an action controller and a method of it (by default, other behaviour possible using different packages)
  • The action controller gets instantiated and the method will be called

Note!

This package does not register routers as plugins. It only provides several routers.