Details
-
Story
-
Resolution: Done
-
Medium
-
2.5.13, 3.1.2
-
None
Description
Allow console command specific extra options.
Add an additional parameter with which you can add console command specific parameters e.g. for console command cleanup versions or check url
- for ezplatform:check-urls the option "--quiet"
- for ezplatform:content:cleanup-versions the options "--keep --status=draft"
Currently you are not able to add this options in the cron config.
The config for cleanup versions cronjob would look like this:
ezplatform.cron.cleanup_version: class: eZ\Bundle\EzPublishCoreBundle\Command\CleanupVersionsCommand tags: - { name: console.command } - { name: ezplatform.cron.job, schedule: '55 23 3 1-12 *', category: 'monthly', options: '--keep=0 --status=draft' }