mirror of
https://github.com/getgrav/grav.git
synced 2026-03-04 03:21:33 +01:00
Added onAction.{$action} event
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -41,6 +41,8 @@ class TasksProcessor extends ProcessorBase
|
||||
|
||||
if ($task) {
|
||||
$this->container->fireEvent('onTask.' . $task);
|
||||
} elseif ($action) {
|
||||
$this->container->fireEvent('onAction.' . $action);
|
||||
}
|
||||
}
|
||||
$this->stopTimer();
|
||||
|
||||
Reference in New Issue
Block a user