2017 © Pedro Peláez
 

symfony-bundle cronmanager-bundle

Cron manager

image

dspsofts/cronmanager-bundle

Cron manager

  • Friday, April 21, 2017
  • by pfeyssaguet
  • Repository
  • 1 Watchers
  • 1 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 8 Open issues
  • 18 Versions
  • 0 % Grown

The README.md

DspSoftsCronManagerBundle

Latest Version Software License Build Status Coverage Status Quality Score, (*1)

The DspSoftsCronManagerBundle provides a simple way to launch and control any cron job., (*2)

Installation

Step 1: Download the Bundle

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:, (*3)

$ composer require dspsofts/cronmanager-bundle

This command requires you to have Composer installed globally, as explained in the installation chapter_ of the Composer documentation., (*4)

Step 2: Enable the Bundle

Then, enable the bundle by adding the following line in the app/AppKernel.php file of your project:, (*5)

// app/AppKernel.php
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new DspSofts\CronManagerBundle\DspSoftsCronManagerBundle(),
        );
        // ...
    }
    // ...
}

Step 3: Configure the bundle

You need to specify where to put the log files in your app/config/config.yml :, (*6)

# app/config/config.yml
dsp_softs_cron_manager:
    logs_dir: "%kernel.logs_dir%/cronmanager/%kernel.environment%"

Step 4: Add the runner command to your crontab

This cron manager uses a main command which runs all crons. The command dsp:cron:run should be run every minute. In order to do this, you can put this line in your crontab:, (*7)

* * * * * /path/to/symfony/app/console dsp:cron:run

Please be aware that the user which owns the crontab needs to have whatever permissions you need for your cron tasks., (*8)

License

This bundle is under the MIT license. See the complete license in the bundle:, (*9)

Resources/meta/LICENSE

The Versions

21/04 2017
10/01 2017
10/01 2017
10/01 2017
13/12 2016