Skip to content

Instantly share code, notes, and snippets.

@Beagon
Last active October 17, 2018 00:36
Show Gist options
  • Select an option

  • Save Beagon/59e8dd714d049beff6912d230e119965 to your computer and use it in GitHub Desktop.

Select an option

Save Beagon/59e8dd714d049beff6912d230e119965 to your computer and use it in GitHub Desktop.
J-Mose/CommandSchedulerBundle with EasyAdmin [TESTED ON EasyAdmin 1.7 with jmose/command-scheduler-bundle 2.0]
# Please just review the changes instead of replacing your easy_admin config :)
easy_admin:
# Every other configuration
entities:
# All your other entities
Cron:
label: 'Command Scheduler'
class: JMose\CommandSchedulerBundle\Entity\ScheduledCommand
list:
title: "Command CRON Scheduler"
fields:
- id
- name
- command
- arguments
- lastExecution
- { property: 'lastReturncode', label: 'Last Returncode' }
- { property: 'locked', label: 'Locked', type: 'boolean' }
- priority
- disabled
form:
fields:
- { type: 'section', label: 'Command Details' }
- name
- { property: 'command', type: 'JMose\CommandSchedulerBundle\Form\Type\CommandChoiceType' }
- arguments
- cronExpression
- priority
- disabled
- { type: 'section', label: 'Miscellaneous Settings' }
- logFile
new:
fields:
- executeImmediately
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment