From 217fd5fb59acda13af381972afca694661a6d9c1 Mon Sep 17 00:00:00 2001 From: Christopher Georg Date: Fri, 19 Mar 2021 21:01:53 +0100 Subject: [PATCH 1/8] add recipe for Dukecity\CommandSchedulerBundle. it is a copy of JMose\CommandSchedulerBundle which seems abandoned --- .../1.0/config/packages/scheduler.yaml | 19 +++++++++++++++++++ .../1.0/config/routes/scheduler.yaml | 3 +++ .../1.0/manifest.json | 8 ++++++++ .../1.0/post-install.txt | 13 +++++++++++++ 4 files changed, 43 insertions(+) create mode 100644 dukecity/command-scheduler-bundle/1.0/config/packages/scheduler.yaml create mode 100644 dukecity/command-scheduler-bundle/1.0/config/routes/scheduler.yaml create mode 100644 dukecity/command-scheduler-bundle/1.0/manifest.json create mode 100644 dukecity/command-scheduler-bundle/1.0/post-install.txt diff --git a/dukecity/command-scheduler-bundle/1.0/config/packages/scheduler.yaml b/dukecity/command-scheduler-bundle/1.0/config/packages/scheduler.yaml new file mode 100644 index 00000000..b5aed7e0 --- /dev/null +++ b/dukecity/command-scheduler-bundle/1.0/config/packages/scheduler.yaml @@ -0,0 +1,19 @@ +# See full configuration at +# https://github.com/Dukecity/CommandSchedulerBundle/wiki/Configuration +dukecity_command_scheduler: + + # Scheduler will write output files here. set false to disable it. + log_path: "%kernel.logs_dir%" + + # Add namespace you don't want to see its Command in the scheduler. + excluded_command_namespaces: + - _global + - scheduler + - server + - container + - config + - generate + - init + - router + - doctrine + - debug \ No newline at end of file diff --git a/dukecity/command-scheduler-bundle/1.0/config/routes/scheduler.yaml b/dukecity/command-scheduler-bundle/1.0/config/routes/scheduler.yaml new file mode 100644 index 00000000..9fb5a220 --- /dev/null +++ b/dukecity/command-scheduler-bundle/1.0/config/routes/scheduler.yaml @@ -0,0 +1,3 @@ +dukecity_command_scheduler: + resource: "@DukecityCommandSchedulerBundle/Resources/config/routing.php" + prefix: / \ No newline at end of file diff --git a/dukecity/command-scheduler-bundle/1.0/manifest.json b/dukecity/command-scheduler-bundle/1.0/manifest.json new file mode 100644 index 00000000..89f5efc8 --- /dev/null +++ b/dukecity/command-scheduler-bundle/1.0/manifest.json @@ -0,0 +1,8 @@ +{ + "bundles": { + "Dukecity\\CommandSchedulerBundle\\DukecityCommandSchedulerBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + } +} \ No newline at end of file diff --git a/dukecity/command-scheduler-bundle/1.0/post-install.txt b/dukecity/command-scheduler-bundle/1.0/post-install.txt new file mode 100644 index 00000000..66907997 --- /dev/null +++ b/dukecity/command-scheduler-bundle/1.0/post-install.txt @@ -0,0 +1,13 @@ + + What's next for DukecityCommandSchedulerBundle ? + + + * Update your DB schema + 1. php bin/console make:migration + 2. php bin/console doctrine:migrations:migrate + + * Secure / Configure your application: + 1. Secure your route by adding - { path: ^/command-scheduler, role: ROLE_ADMIN } in your security config. + 2. Set the single-entry point in crontab : * * * * * php /your_app/bin/console scheduler:execute + + * Schedule your commands at http://your-app/command-scheduler/list From 54422894f607c3f06a7527b67c32f0f0e217f587 Mon Sep 17 00:00:00 2001 From: Christopher Georg Date: Fri, 19 Mar 2021 21:07:41 +0100 Subject: [PATCH 2/8] add recipe for Dukecity\CommandSchedulerBundle. it is a copy of JMose\CommandSchedulerBundle which seems abandoned (add newlines at the of the file) --- .../command-scheduler-bundle/1.0/config/packages/scheduler.yaml | 2 +- .../command-scheduler-bundle/1.0/config/routes/scheduler.yaml | 2 +- dukecity/command-scheduler-bundle/1.0/manifest.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dukecity/command-scheduler-bundle/1.0/config/packages/scheduler.yaml b/dukecity/command-scheduler-bundle/1.0/config/packages/scheduler.yaml index b5aed7e0..458fbc05 100644 --- a/dukecity/command-scheduler-bundle/1.0/config/packages/scheduler.yaml +++ b/dukecity/command-scheduler-bundle/1.0/config/packages/scheduler.yaml @@ -16,4 +16,4 @@ dukecity_command_scheduler: - init - router - doctrine - - debug \ No newline at end of file + - debug diff --git a/dukecity/command-scheduler-bundle/1.0/config/routes/scheduler.yaml b/dukecity/command-scheduler-bundle/1.0/config/routes/scheduler.yaml index 9fb5a220..3fc2a20f 100644 --- a/dukecity/command-scheduler-bundle/1.0/config/routes/scheduler.yaml +++ b/dukecity/command-scheduler-bundle/1.0/config/routes/scheduler.yaml @@ -1,3 +1,3 @@ dukecity_command_scheduler: resource: "@DukecityCommandSchedulerBundle/Resources/config/routing.php" - prefix: / \ No newline at end of file + prefix: / diff --git a/dukecity/command-scheduler-bundle/1.0/manifest.json b/dukecity/command-scheduler-bundle/1.0/manifest.json index 89f5efc8..794ddb46 100644 --- a/dukecity/command-scheduler-bundle/1.0/manifest.json +++ b/dukecity/command-scheduler-bundle/1.0/manifest.json @@ -5,4 +5,4 @@ "copy-from-recipe": { "config/": "%CONFIG_DIR%/" } -} \ No newline at end of file +} From 33495524a33e35c67cec66cc6b6d08dc2035afa6 Mon Sep 17 00:00:00 2001 From: Christopher Georg Date: Sun, 21 Mar 2021 17:17:53 +0100 Subject: [PATCH 3/8] changed version 1.0 => 3.0 --- .../{1.0 => 3.0}/config/packages/scheduler.yaml | 0 .../{1.0 => 3.0}/config/routes/scheduler.yaml | 0 dukecity/command-scheduler-bundle/{1.0 => 3.0}/manifest.json | 0 dukecity/command-scheduler-bundle/{1.0 => 3.0}/post-install.txt | 0 4 files changed, 0 insertions(+), 0 deletions(-) rename dukecity/command-scheduler-bundle/{1.0 => 3.0}/config/packages/scheduler.yaml (100%) rename dukecity/command-scheduler-bundle/{1.0 => 3.0}/config/routes/scheduler.yaml (100%) rename dukecity/command-scheduler-bundle/{1.0 => 3.0}/manifest.json (100%) rename dukecity/command-scheduler-bundle/{1.0 => 3.0}/post-install.txt (100%) diff --git a/dukecity/command-scheduler-bundle/1.0/config/packages/scheduler.yaml b/dukecity/command-scheduler-bundle/3.0/config/packages/scheduler.yaml similarity index 100% rename from dukecity/command-scheduler-bundle/1.0/config/packages/scheduler.yaml rename to dukecity/command-scheduler-bundle/3.0/config/packages/scheduler.yaml diff --git a/dukecity/command-scheduler-bundle/1.0/config/routes/scheduler.yaml b/dukecity/command-scheduler-bundle/3.0/config/routes/scheduler.yaml similarity index 100% rename from dukecity/command-scheduler-bundle/1.0/config/routes/scheduler.yaml rename to dukecity/command-scheduler-bundle/3.0/config/routes/scheduler.yaml diff --git a/dukecity/command-scheduler-bundle/1.0/manifest.json b/dukecity/command-scheduler-bundle/3.0/manifest.json similarity index 100% rename from dukecity/command-scheduler-bundle/1.0/manifest.json rename to dukecity/command-scheduler-bundle/3.0/manifest.json diff --git a/dukecity/command-scheduler-bundle/1.0/post-install.txt b/dukecity/command-scheduler-bundle/3.0/post-install.txt similarity index 100% rename from dukecity/command-scheduler-bundle/1.0/post-install.txt rename to dukecity/command-scheduler-bundle/3.0/post-install.txt From ca507f75eadba37e899859bbbfb521e3991ffece Mon Sep 17 00:00:00 2001 From: Christopher Georg Date: Sun, 21 Mar 2021 17:26:21 +0100 Subject: [PATCH 4/8] 3.0 needs routing.yaml, 4.0 need routing.php (and php 8) --- .../command-scheduler-bundle/3.0/config/routes/scheduler.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dukecity/command-scheduler-bundle/3.0/config/routes/scheduler.yaml b/dukecity/command-scheduler-bundle/3.0/config/routes/scheduler.yaml index 3fc2a20f..8b67c8f6 100644 --- a/dukecity/command-scheduler-bundle/3.0/config/routes/scheduler.yaml +++ b/dukecity/command-scheduler-bundle/3.0/config/routes/scheduler.yaml @@ -1,3 +1,3 @@ dukecity_command_scheduler: - resource: "@DukecityCommandSchedulerBundle/Resources/config/routing.php" + resource: "@DukecityCommandSchedulerBundle/Resources/config/routing.yaml" prefix: / From 731be034d2cc40b4d54e1414362196ad8e26a9f6 Mon Sep 17 00:00:00 2001 From: Christopher Georg Date: Sun, 21 Mar 2021 17:45:35 +0100 Subject: [PATCH 5/8] 3.0 needs routing.yml, 4.0 need routing.php (and php 8) --- .../command-scheduler-bundle/3.0/config/routes/scheduler.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dukecity/command-scheduler-bundle/3.0/config/routes/scheduler.yaml b/dukecity/command-scheduler-bundle/3.0/config/routes/scheduler.yaml index 8b67c8f6..e43d577e 100644 --- a/dukecity/command-scheduler-bundle/3.0/config/routes/scheduler.yaml +++ b/dukecity/command-scheduler-bundle/3.0/config/routes/scheduler.yaml @@ -1,3 +1,3 @@ dukecity_command_scheduler: - resource: "@DukecityCommandSchedulerBundle/Resources/config/routing.yaml" + resource: "@DukecityCommandSchedulerBundle/Resources/config/routing.yml" prefix: / From d4360cd804d009150e1badba0772c9e92c647380 Mon Sep 17 00:00:00 2001 From: Christopher Georg Date: Sun, 21 Mar 2021 19:16:26 +0100 Subject: [PATCH 6/8] changed to routing.php (updated 3.x of bundle) --- .../command-scheduler-bundle/3.0/config/routes/scheduler.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dukecity/command-scheduler-bundle/3.0/config/routes/scheduler.yaml b/dukecity/command-scheduler-bundle/3.0/config/routes/scheduler.yaml index e43d577e..3fc2a20f 100644 --- a/dukecity/command-scheduler-bundle/3.0/config/routes/scheduler.yaml +++ b/dukecity/command-scheduler-bundle/3.0/config/routes/scheduler.yaml @@ -1,3 +1,3 @@ dukecity_command_scheduler: - resource: "@DukecityCommandSchedulerBundle/Resources/config/routing.yml" + resource: "@DukecityCommandSchedulerBundle/Resources/config/routing.php" prefix: / From 08fc601cb58236f5e33f4bc843bacda068cee4c8 Mon Sep 17 00:00:00 2001 From: Christopher Georg Date: Sun, 21 Mar 2021 19:25:42 +0100 Subject: [PATCH 7/8] just to rerun test for fix psr-0 warning --- .../command-scheduler-bundle/3.0/config/packages/scheduler.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dukecity/command-scheduler-bundle/3.0/config/packages/scheduler.yaml b/dukecity/command-scheduler-bundle/3.0/config/packages/scheduler.yaml index 458fbc05..3185c886 100644 --- a/dukecity/command-scheduler-bundle/3.0/config/packages/scheduler.yaml +++ b/dukecity/command-scheduler-bundle/3.0/config/packages/scheduler.yaml @@ -1,5 +1,5 @@ # See full configuration at -# https://github.com/Dukecity/CommandSchedulerBundle/wiki/Configuration +# https://github.com/Dukecity/CommandSchedulerBundle/wiki/Configuration dukecity_command_scheduler: # Scheduler will write output files here. set false to disable it. From 215087316e6ea9cc3b78b33a6a15de8562b2a6a1 Mon Sep 17 00:00:00 2001 From: Christopher Georg Date: Sun, 21 Mar 2021 19:42:47 +0100 Subject: [PATCH 8/8] rerun tests --- .../command-scheduler-bundle/3.0/config/packages/scheduler.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dukecity/command-scheduler-bundle/3.0/config/packages/scheduler.yaml b/dukecity/command-scheduler-bundle/3.0/config/packages/scheduler.yaml index 3185c886..95c91945 100644 --- a/dukecity/command-scheduler-bundle/3.0/config/packages/scheduler.yaml +++ b/dukecity/command-scheduler-bundle/3.0/config/packages/scheduler.yaml @@ -1,5 +1,5 @@ # See full configuration at -# https://github.com/Dukecity/CommandSchedulerBundle/wiki/Configuration +# https://github.com/Dukecity/CommandSchedulerBundle/wiki/Configuration dukecity_command_scheduler: # Scheduler will write output files here. set false to disable it.