aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/EventDispatcher
Commit message (Collapse)AuthorAgeFilesLines
* fix: Make webhook event serialization opt-in with a new interfaceCôme Chilliet2024-06-111-0/+24
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* feat: Make node events serializableCôme Chilliet2024-06-111-0/+42
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore: Add SPDX headerAndy Scherzinger2024-05-245-97/+10
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* add hasListeners()Maxence Lange2024-02-141-0/+9
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* composer run cs:fixCôme Chilliet2023-01-204-4/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix ArrayAccess and JsonSerializable return typesCôme Chilliet2021-11-231-0/+2
| | | | | | First round of modifications for PHP 8.1 Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-045-10/+6
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Merge pull request #25558 from nextcloud/deprecate/generic-event-wrapperRoeland Jago Douma2021-02-101-0/+17
|\ | | | | Deprecate the GenericEvent wrapper
| * Deprecate the GenericEvent wrapperChristoph Wurst2021-02-101-0/+17
| | | | | | | | | | | | | | | | | | This class is a convenience type to replace the old Symfony GenericEvent with our own type, to ease the transition from Symfony events to our (PSR) events. Hence we can deprecate the class as precaution to smoothen the next transition step in the future. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Make our event base class independent of Symfony and follow PSRChristoph Wurst2021-02-101-2/+35
|/ | | | | | | | | | Symfony is migrating towards a pure PSR event dispatcher, hence their event class is POPO that implements the PSR stoppable event interface. Since we can do that ourself and this change doesn't come with any API changes (breakage), it's easy for us to become independent of Symfony but also stay PSR-compliant at the same step. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add a hint about the direction of priorityJoas Schilling2021-01-151-2/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Type the event dispatcher listener callables with PsalmChristoph Wurst2020-10-281-0/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Deprecate \OCP\EventDispatcher\IEventDispatcher::dispatchChristoph Wurst2020-10-271-0/+1
| | | | | | | As discussed in https://help.nextcloud.com/t/deprecation-of-ieventdispatcher-dispatch/95381 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add psalm types for the event dispatcherChristoph Wurst2020-10-152-0/+13
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove @package annotations from public namespaceJulius Härtl2020-08-261-1/+0
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-104-4/+0
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-311-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Allow to remove listenersJoas Schilling2020-02-271-0/+8
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update license headersChristoph Wurst2019-12-055-10/+17
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* add Nextcloud specific GenericEvent implementationArthur Schiwon2019-11-261-0/+169
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Make it possible to broadcast events to (web) clientsChristoph Wurst2019-10-281-0/+71
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use Symfony's new contract Event class instead of the deprecated oneChristoph Wurst2019-09-121-2/+16
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add Symfony inspired typed event dispatcher methodChristoph Wurst2019-09-111-0/+12
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add event dispatcher to OCPChristoph Wurst2019-06-253-0/+141
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>