Add "core" automation integration & implement wait action

The "core" integration will provide triggers, actions, and subjects
that are not specific to any 3rd party integration.

[MAILPOET-4136]
This commit is contained in:
Jan Jakes
2022-03-07 16:08:07 +01:00
committed by Veljko V
parent f7866aab49
commit fc16bacadc
6 changed files with 95 additions and 11 deletions

View File

@ -12,4 +12,8 @@ class ActionScheduler {
public function schedule(int $timestamp, string $hook, array $args = []): int {
return as_schedule_single_action($timestamp, $hook, $args, self::GROUP_ID);
}
public function hasScheduledAction(string $hook, array $args = []): bool {
return as_has_scheduled_action($hook, $args, self::GROUP_ID);
}
}