PHP code example of mczolko / heroku-scheduler-bundle
1. Go to this page and download the library: Download mczolko/heroku-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/ */
mczolko / heroku-scheduler-bundle example snippets
// app/AppKernel.php
// ...
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
// ...
new mCzolko\HerokuSchedulerBundle\mCzolkoHerokuSchedulerBundle(),
);
// ...
}
// ...
}
use mCzolko\HerokuSchedulerBundle\Events;
class HerokuSchedulerSubscriber implements EventSubscriberInterface
{
public static function getSubscribedEvents()
{
return [
Events::TEN_MINUTES => 'tenMinutes',
Events::HOURLY => 'hourly',
Events::DAILY => 'daily'
];
}
public function tenMinutes()
{
// Check notifications on your Apple watch
}
public function hourly()
{
// Send message at least one hot chick on Badoo
}
public function daily()
{
// https://www.youtube.com/watch?v=lxptFSJJ14Y
}
}