Created
March 11, 2022 16:44
-
-
Save dgafka/b445c8a50aa4ec417ce2c2f202088f4c to your computer and use it in GitHub Desktop.
scheduling-in-php-01.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class NotificationService | |
{ | |
#[Scheduled(endpointId: "notificationSender")] | |
#[Poller(fixedRateInMilliseconds: 10000)] | |
public function sendNotifications(): void | |
{ | |
// this method will be called every 10 seconds | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment