1
0
mirror of https://github.com/flarum/core.git synced 2025-08-18 06:11:23 +02:00

feat: Queue package manager commands (#3418)

* feat: Queue package manager commands
* adjust tests
* fix: force run whynot command synchronously
* chore: maximize command output box's height
* chore: more user instructions on background queue
* feat: track command peak memory usage
* feat: exit of CLI php version doesn't match web php version
* chore: install deps
* chore: format and typing workflow fix

Signed-off-by: Sami Mazouz <ilyasmazouz@gmail.com>
This commit is contained in:
Sami Mazouz
2022-07-24 14:02:13 +01:00
committed by GitHub
parent 75aaef7d76
commit 795a500adb
71 changed files with 1631 additions and 375 deletions

View File

@@ -27,6 +27,12 @@ class SendNotificationWhenReplyIsPosted
public function handle(Posted $event)
{
$discussion = $event->post->discussion;
/** @var \Psr\Log\LoggerInterface $log */
$log = resolve('log');
$log->info("running subscriptions send notification when reply is posted listener. last_post_number: $discussion->last_post_number");
$this->queue->push(
new SendReplyNotification($event->post, $event->post->discussion->last_post_number)
);