Skip to content

Configuration

chris edited this page Nov 17, 2021 · 3 revisions

Available configuration

Here is the default bundle configuration. The flex recipe will create the scheduler.yaml file in your packages directory where you can change the base configuration.

dukecity_command_scheduler:

    # Default directory where scheduler will write output files
    #  This default value assume that php bin/console is launched from project's root and that the directory is writable
    # if log_path is set to false, logging to files is disabled at all 
    log_path: "%kernel.logs_dir%"
    # This default value disables timeout checking (see monitoring), set to a numeric value (seconds) to enable it
    lock_timeout: false
    # receivers for reporting mails
    monitor_mail: []
    # set a custom subject for monitor mails (first placeholder will be replaced by the hostname, second by the date)
    # double percentage is used to escape the percentage so they stay parameters
    monitor_mail_subject: cronjob monitoring %%s, %%s
    # to send "everything's all right" emails to receivers for reporting mails set this value to "true" (see monitoring)
    send_ok: false

    # Namespaces listed here won't be listed in the list
    excluded_command_namespaces:

    # Only namespaces listed here will be listed in the list. Not compatible together with excluded_command_namespaces.
    included_command_namespaces:

    # Doctrine manager
    doctrine_manager: default

Override the navigation bar

If you'd like to alter the navigation bar shown on http://{your-app-root}/command-scheduler/list you'll want to override the navbar template. This can easily be done by using standard overrides in Symfony, as described here.

In your project, you'll want to copy the Navbar:navbar:html.twig template into app/Resources/DukecityCommandSchedulerBundle/views/Navbar/navbar.html.twig. Any changes to the file in this location will take precedence over the bundle's template file.

Clone this wiki locally