Files
guides/projects/priceservice/vendor/symfony/maker-bundle/templates/webhook/WebhookConsumer.tpl.php
2026-06-03 22:05:20 +02:00

21 lines
493 B
PHP

<?= "<?php\n" ?>
namespace <?= $namespace; ?>;
use Symfony\Component\RemoteEvent\Attribute\AsRemoteEventConsumer;
use Symfony\Component\RemoteEvent\Consumer\ConsumerInterface;
use Symfony\Component\RemoteEvent\RemoteEvent;
#[AsRemoteEventConsumer('<?= $webhook_name ?>')]
final class <?= $class_name ?> implements ConsumerInterface
{
public function __construct()
{
}
public function consume(RemoteEvent $event): void
{
// Implement your own logic here
}
}