1. Go to this page and download the library: Download trovit/cron-manager-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/ */
trovit / cron-manager-bundle example snippets
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Trovit\CronManagerBundle\TrovitCronManagerBundle(),
// ...
);
}
//...
$cronTask = $this->getDoctrine()->getRepository('TrovitCronManagerBundle:TblCronTask')->find($id);
$this->get('trovit.cron_manager.delete_cron_task')->delete($cronTask);
// It can also be deleted by id
// $this->get('trovit.cron_manager.delete_cron_task')->deleteById($id);
//...