From f5b860aa9ef132afdb8e35b7455fffc5fef1d7f0 Mon Sep 17 00:00:00 2001 From: Gauthier Gilles Date: Fri, 3 May 2019 11:55:10 +0200 Subject: [PATCH] add LexikCronFileGeneratorBundle recipe --- .../config/packages/lexik_cron_file_generator.yaml | 13 +++++++++++++ lexik/cron-file-generator-bundle/1.0/manifest.json | 8 ++++++++ 2 files changed, 21 insertions(+) create mode 100644 lexik/cron-file-generator-bundle/1.0/config/packages/lexik_cron_file_generator.yaml create mode 100644 lexik/cron-file-generator-bundle/1.0/manifest.json diff --git a/lexik/cron-file-generator-bundle/1.0/config/packages/lexik_cron_file_generator.yaml b/lexik/cron-file-generator-bundle/1.0/config/packages/lexik_cron_file_generator.yaml new file mode 100644 index 00000000..af59cf5f --- /dev/null +++ b/lexik/cron-file-generator-bundle/1.0/config/packages/lexik_cron_file_generator.yaml @@ -0,0 +1,13 @@ +# see https://github.com/lexik/LexikCronFileGeneratorBundle/blob/master/Resources/doc/index.md +lexik_cron_file_generator: + env_available: # declare your env availables + - staging # example: staging, prod + user: + staging: 'project_staging' # user for execute the cron + php_version: 'php7.2' + absolute_path: + staging: 'project_dir/bin/console' + output_path: '%kernel.cache_dir%/cron_test' # filename will be cron_test + # crons configuration is optional but you need at least one for execute the command + # crons: + # - { name: 'Send email', command: 'app:test', env: { staging: '* * * * *', prod: '* 5 * * *' } } diff --git a/lexik/cron-file-generator-bundle/1.0/manifest.json b/lexik/cron-file-generator-bundle/1.0/manifest.json new file mode 100644 index 00000000..acbcc1b8 --- /dev/null +++ b/lexik/cron-file-generator-bundle/1.0/manifest.json @@ -0,0 +1,8 @@ +{ + "bundles": { + "Lexik\\Bundle\\CronFileGeneratorBundle\\LexikCronFileGeneratorBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + } +}