initial commit
This commit is contained in:
20
vendor/symfony/maker-bundle/templates/webhook/WebhookConsumer.tpl.php
vendored
Normal file
20
vendor/symfony/maker-bundle/templates/webhook/WebhookConsumer.tpl.php
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
<?= "<?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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user