mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
26 lines
567 B
PHP
26 lines
567 B
PHP
<?php
|
|
|
|
namespace Appwrite\Event;
|
|
|
|
use Utopia\Database\Document;
|
|
use Utopia\Queue\Connection;
|
|
|
|
class Webhook extends Event
|
|
{
|
|
public function __construct(protected Connection $connection)
|
|
{
|
|
parent::__construct($connection);
|
|
|
|
$this
|
|
->setQueue(Event::WEBHOOK_QUEUE_NAME)
|
|
->setClass(Event::WEBHOOK_CLASS_NAME);
|
|
}
|
|
|
|
public function trigger(): string|bool
|
|
{
|
|
/** Filter out context and trim project to keep the payload small */
|
|
$this->context = [];
|
|
|
|
return parent::trigger();
|
|
}
|
|
}
|