Added onAction.{$action} event

This commit is contained in:
Matias Griese
2018-12-01 10:04:15 +02:00
parent fa948c04ab
commit bc18b9408b
2 changed files with 4 additions and 1 deletions

View File

@@ -6,7 +6,8 @@
* Added `orderBy()` and `limit()` methods to `ObjectCollectionInterface` and its base classes
* Flex: Added support for custom object index classes (API compatibility break)
* Added `user-data://` which is a writable stream (`user://data` is not and should be avoided)
* Added support for `action:xxx` (like task but works without nonce)
* Added support for `/action:{$action}` (like task but works without nonce, used only for getting data)
* Added `onAction.{$action}` event
1. [](#improved)
* Improve Flex storage
1. [](#bugfix)

View File

@@ -41,6 +41,8 @@ class TasksProcessor extends ProcessorBase
if ($task) {
$this->container->fireEvent('onTask.' . $task);
} elseif ($action) {
$this->container->fireEvent('onAction.' . $action);
}
}
$this->stopTimer();