2019-08-21 -> 2021-07-27
A service to register the routes of your Light plugin.
This is a Light framework plugin.
This is part of the universe framework.
Using the planet installer via light-cli
lt install Ling.Light_EasyRoute
Using the uni command.
uni import Ling/Light_EasyRoute
Or just download it and place it where you want otherwise.
- Light_EasyRoute api (generated with DocTools)
- Conceptions notes
- Services
This plugin provides the following services:
- easy_route
Here is an example of the service configuration file:
easy_route:
instance: Ling\Light_EasyRoute\Service\LightEasyRouteService
methods:
setContainer:
container: @container()
# --------------------------------------
# hooks
# --------------------------------------
$events.methods_collection:
-
method: registerListener
args:
events: Ling.Light.initialize_1
listener:
instance: @service(easy_route)
callable_method: initialize
See the conception notes for more details.
-
1.3.14 -- 2021-07-27
- add LightEasyRouteHelper::getMasterRelativePath method
-
1.3.13 -- 2021-06-29
- add LightEasyRouteHelper::writeRouteToPluginFile method
-
1.3.12 -- 2021-06-29
- add LightEasyRouteHelper::guessRoutePrefix method
-
1.3.11 -- 2021-06-29
- add LightEasyRouteHelper::getPluginFile method
-
1.3.10 -- 2021-06-18
- fix service->registerRouteByBundle converting pattern slash to empty string
-
1.3.9 -- 2021-05-31
- Removing trailing plus in lpi-deps file (to work with Light_PlanetInstaller:2.0.0 api
-
1.3.8 -- 2021-05-10
- Fix assets missing.
-
1.3.7 -- 2021-03-15
- update planet to adapt Ling.Light:0.70.0
-
1.3.6 -- 2021-03-09
- update planet to adapt Ling.Light recommended app structure
-
1.3.5 -- 2021-03-05
- update README.md, add install alternative
-
1.3.4 -- 2021-02-26
- update doc, trailing slash section
-
1.3.3 -- 2021-02-26
- fix service->initialize type error when calling light vars service
-
1.3.2 -- 2021-02-25
- update service, now prefix can use container notation to access light vars
-
1.3.1 -- 2021-02-25
- update service->registerRouteByBundle, now trim trailing slashes of the route patterns
-
1.3.0 -- 2021-02-23
- implement open registration system
-
1.2.5 -- 2020-12-08
- Fix lpi-deps not using natsort
-
1.2.4 -- 2020-12-04
- Add lpi-deps.byml file
-
1.2.3 -- 2020-12-01
- update LightEasyRouteService->initialize, now accesses app dir via container instead of light instance
-
1.2.2 -- 2019-12-17
- fix functional typo in service configuration
-
1.2.1 -- 2019-12-17
- forgot to update README.md
-
1.2.0 -- 2019-12-17
- update plugin to accommodate Light 0.50 initialization system
-
1.1.0 -- 2019-09-10
- update service instantiation to accommodate the new initializer interface
-
1.0.0 -- 2019-08-21
- initial commit