PHP code example of acrnogor / crontab-manager-bundle

1. Go to this page and download the library: Download acrnogor/crontab-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/ */

    

acrnogor / crontab-manager-bundle example snippets




$bundles = [
    // ... previous bundles
    new Acrnogor\CrontabManagerBundle\AcrnogorCrontabManagerBundle()
];


return [
    Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true],
    Acrnogor\CrontabManagerBundle\AcrnogorCrontabManagerBundle::class => ['all' => true]
];
yaml
acrnogor_crontab_manager:
    cron_jobs:
        - '*/8 * * * * /usr/bin/php /var/www/test/test.php > /dev/null 2>&1'
 %PROJECT_DIR%/app/Kernel.php
yaml
acrnogor_crontab_manager:
  cron_jobs:
    - '*/8 * * * * /usr/bin/php /var/www/test/test.php > /dev/null 2>&1'
    - '*/8 * * * * /usr/bin/php /var/www/sf4/bin/console debug:router > /dev/null 2>&1'
config/bundles.php