aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/EventDispatcher
Commit message (Collapse)AuthorAgeFilesLines
* chore: Add SPDX headerAndy Scherzinger2024-05-242-41/+4
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* add hasListeners()Maxence Lange2024-02-141-17/+9
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-232-13/+13
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* chore!: Remove legacy SymfonyAdapterJoas Schilling2023-07-282-332/+0
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix(eventdispatcher): Don't use all evaluating "or"Joas Schilling2023-06-231-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* emit an event when a message is loggedRobin Appelman2023-06-131-0/+7
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix(dispatcher): Migrate to OCP event dispatcher before ↵Joas Schilling2023-06-021-2/+1
| | | | | | symfony/event-dispatcher upgrade Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix(events): Log deprecated events as debug, not infoChristoph Wurst2023-04-192-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* composer run cs:fixCôme Chilliet2023-01-203-3/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix codestyleCôme Chilliet2022-03-241-1/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Migrate from ILogger to LoggerInterface in lib/privateCôme Chilliet2022-03-242-10/+8
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix ArrayAccess and JsonSerializable return typesCôme Chilliet2021-11-231-5/+9
| | | | | | First round of modifications for PHP 8.1 Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Clarify that lazy event listeners are built from the server containerChristoph Wurst2021-07-051-6/+18
| | | | | | Ref https://github.com/nextcloud/server/issues/27793 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-044-9/+4
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix the legacy dispatcher argument orderChristoph Wurst2021-02-091-0/+30
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Test the symfony adapterChristoph Wurst2021-02-052-1/+5
| | | | | | | | To prevent regression in the future. And make sure we always return an object … Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Log deprecation notice of GenericEventWrapper just onceChristoph Wurst2021-02-051-0/+8
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the Symfony dispatcher correctlyChristoph Wurst2021-01-051-14/+22
| | | | | | | * Event object as first arg (otherwise there is a notice in the logs) * `dispatch` MUST return the event object Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use PSR Logger in event dispatcherJoas Schilling2020-10-082-9/+8
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-242-1/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Deprecate the internal Symfony dispatcher adapterChristoph Wurst2020-07-152-0/+17
| | | | | | | This type is not known on the public API, yet we should make sure that any usage of this class is noticed and migrated as soon as possible. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Don't break event listeners with the GenericEventWrapperJoas Schilling2020-06-161-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix missing parent constructor call and get_class usage in GenericEventWrapperChristoph Wurst2020-06-081-3/+5
| | | | | | | * The parent constructor was not called * `get_class` does not allow null values in php7.2+ Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Log usage of a deprecated event instead of emittingRoeland Jago Douma2020-05-222-6/+124
| | | | | | | This way we can track down what is being used and migrate them over. And slowly kill the old way in a release or 2. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-103-3/+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/+5
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update license headersChristoph Wurst2019-12-053-6/+12
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-222-3/+3
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make it possible to broadcast events to (web) clientsChristoph Wurst2019-10-281-0/+11
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* use OCP\EventDispatcher\Event over Symfony's deprecated EventArthur Schiwon2019-10-171-5/+13
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Merge pull request #17106 from nextcloud/feature/dispatch-typed-eventblizzz2019-09-121-0/+5
|\ | | | | Add Symfony inspired typed event dispatcher method
| * Add Symfony inspired typed event dispatcher methodChristoph Wurst2019-09-111-0/+5
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use the new Symfony event dispatcher signatureChristoph Wurst2019-09-101-2/+1
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add event dispatcher to OCPChristoph Wurst2019-06-253-0/+303
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>