A cron job manager for symfony console.
A simple bundle install. No extra stuff.
composer require padam87/cron-bundle
new Padam87\CronBundle\Padam87CronBundle(),
padam87_cron:
log_dir: %cron_log_dir%
variables:
mailto: %cron_mailto%
any_other_variable_you_might_need: 'some_value'
Please note that v2 versions of this bundle still support annotations.
cron:dump
dumps the cronfilecron:import
dumps the cronfile to the temp dir, and imports it
#[Job(minute: '5', hour: '0')]
class MyCommand extends Command
#[Job(minute: '5',hour: '0', group: 'master')]
class MyCommand extends Command
#[Job(minute: '5', hour: '0', logFile: 'my-command.log')]
class MyCommand extends Command