Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-31958

Allow console command specific extra options

    XMLWordPrintable

Details

    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' }
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            michal.szoltysek@ibexa.co Michał Szołtysek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: