2019-07-18 -> 2021-03-15
A preroute hub service for the Light framework.
This is a Light framework plugin.
This is part of the universe framework.
Using the planet installer via light-cli
lt install Ling.Light_PrerouteHub
Using the uni command.
uni import Ling/Light_PrerouteHub
Or just download it and place it where you want otherwise.
- Light_PrerouteHub api (generated with DocTools)
- Services
This planet provides the preroute_hub service.
Here is the content of the service configuration file:
preroute_hub:
instance: Ling\Light_PrerouteHub\LightPrerouteHub
methods:
setRunners:
runners: []
The hub service is called by the Light instance, at the beginning of the run method, just after the http request object is ready.
It allows for other plugins to hook some "runners" into the application logic BEFORE the router kicks in.
Runners can provide an early response, which would then have the effect to skip the routing entirely.
We recommend that runners use the polite approach: create a response only if the response has not already been set by another plugin.
Examples of use includes:
- redirecting an user if he is not logged in
An runner must implement the LightPrerouteHubRunnerInterface interface provided by this planet.
-
1.0.6 -- 2021-05-31
- Removing trailing plus in lpi-deps file (to work with Light_PlanetInstaller:2.0.0 api
-
1.0.5 -- 2021-05-10
- Fix assets missing.
-
1.0.4 -- 2021-03-15
- update planet to adapt Ling.Light:0.70.0
-
1.0.3 -- 2021-03-05
- update README.md, add install alternative
-
1.0.2 -- 2020-12-08
- Fix lpi-deps not using natsort.
-
1.0.1 -- 2020-12-04
- Add lpi-deps.byml file
-
1.0.0 -- 2019-07-18
- initial commit