femanager icon indicating copy to clipboard operation
femanager copied to clipboard

Add documentation on how to use Events instead of SignalSlot

Open neufeind opened this issue 2 years ago • 1 comments

femanager meanwhile uses Events. However the documentation still mentions how to use SignalSlot. Add an example of how to use Events by adding a Services.yaml etc. ...

neufeind avatar Sep 07 '22 20:09 neufeind

Rough/basic example ...

+++ Configuration/Services.yaml: services: _defaults: autowire: true autoconfigure: true public: false

Mycompany\Myext\EventListener\FemanagerEventListener: tags: - name: event.listener identifier: 'myext-femanager-finalupdateevent' event: In2code\Femanager\Event\FinalUpdateEvent method: 'finalUpdateEvent'

+++ Classes/EventListener/FemanagerEventListener.php

getUser()); ... } }

neufeind avatar Sep 07 '22 20:09 neufeind