/Light_Events

An event dispatcher for the light framework.

Primary LanguagePHP

Light_Events

2019-10-31 -> 2021-06-28

An event dispatcher for the light framework.

This is a Light plugin.

This is part of the universe framework.

Install

Using the planet installer via light-cli

lt install Ling.Light_Events

Using the uni command.

uni import Ling/Light_Events

Or just download it and place it where you want otherwise.

Summary

Services

This plugin provides the following services:

  • events (returns a LightEventsService instance)

Here is an example of the service configuration:

events:
    instance: Ling\Light_Events\Service\LightEventsService
    methods:
        setContainer:
            container: @container()
        setOptions:
            options:
                debugDispatch: true   # default is false
                debugCall: true       # default is false
                formattingDispatch: white:bgRed
                formattingCall: null

History Log

  • 1.10.8 -- 2021-06-28

    • fix api wrong reference to Ling.Light_Logger
  • 1.10.7 -- 2021-06-25

    • update api, now use Ling.Light_Logger open registration system
  • 1.10.6 -- 2021-05-31

    • Removing trailing plus in lpi-deps file (to work with Light_PlanetInstaller:2.0.0 api
  • 1.10.5 -- 2021-05-03

    • Update dependencies to Ling.Light_Logger (pushed by SubscribersUtil)
  • 1.10.4 -- 2021-05-03

    • fake commit to force assets regeneration
  • 1.10.3 -- 2021-05-03

    • Update dependencies to Ling.Light_Logger (pushed by SubscribersUtil)
  • 1.10.2 -- 2021-03-22

    • fix service not triggering open registration system correctly
  • 1.10.1 -- 2021-03-22

    • update open registration system documentation
  • 1.10.0 -- 2021-03-19

    • update open registration system, now use one file per event
  • 1.9.10 -- 2021-03-19

    • fix open event system using wrong directory
  • 1.9.9 -- 2021-03-18

    • update conception notes
  • 1.9.8 -- 2021-03-15

    • update planet to adapt Ling.Light:0.70.0
  • 1.9.7 -- 2021-03-05

    • update README.md, add install alternative
  • 1.9.6 -- 2021-01-11

    • update service, getFormattedMessage now forces bashtml format mode to cli
  • 1.9.5 -- 2020-12-08

    • Fix lpi-deps not using natsort.
  • 1.9.4 -- 2020-12-04

    • Add lpi-deps.byml file
  • 1.9.3 -- 2020-11-30

    • fix LightEventsHelper::dispatchEvent not sending the event
  • 1.9.2 -- 2020-11-27

    • add LightEventsHelper class
  • 1.9.1 -- 2020-11-06

    • update service configuration options, add formattingDispatch and formattingCall
  • 1.9.0 -- 2020-08-17

    • add Dynamic events registration system
  • 1.8.0 -- 2020-08-14

    • replace useDebug with debugCaught and debugSent options in the service configuration
  • 1.7.0 -- 2020-06-25

    • update service configuration, now has a dedicated logger listener
  • 1.6.0 -- 2020-06-25

    • update log system, DebugLightEventsService is now integrated by default with useDebug option
  • 1.5.0 -- 2020-01-08

    • add DebugLightEventsService
  • 1.4.1 -- 2019-12-19

    • fix LightEventsService, forgot setContainer method
  • 1.4.0 -- 2019-12-19

    • add LightEventsService->getDispatchedEvents method
  • 1.3.0 -- 2019-12-19

    • update LightEventsService, now transmits the container for listeners implementing LightServiceContainerAwareInterface
  • 1.2.0 -- 2019-11-12

    • add priority and stopPropagation systems
  • 1.1.0 -- 2019-11-11

    • update LightEventsService->registerListener, now accepts an array of events as first argument
  • 1.0.0 -- 2019-10-31

    • initial commit