PHP code example of hexalgo-labs / cron-style-scheduler-bundle
1. Go to this page and download the library: Download hexalgo-labs/cron-style-scheduler-bundle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
hexalgo-labs / cron-style-scheduler-bundle example snippets
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Hexalgo\CronStyleSchedulerBundle\Annotation\CronCommand;
/**
* @CronCommand("30 * * * *")
*/
class MyTestCommand extends Command
{
public static $defaultName = 'app:test-command';
protected function execute(InputInterface $input, OutputInterface $output) : int
{
return 1;
}
}