From a8b5fadd4ab0f7214868f499e9aacd68f4830a36 Mon Sep 17 00:00:00 2001 From: thierrydallacroce Date: Wed, 19 Feb 2020 09:40:07 -0800 Subject: [PATCH] Add drush command to rebuild the tracker for dkan search (#321) --- modules/custom/dkan_search/drush.services.yml | 5 ++++ .../src/Drush/DkanSearchCommands.php | 25 +++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 modules/custom/dkan_search/drush.services.yml create mode 100644 modules/custom/dkan_search/src/Drush/DkanSearchCommands.php diff --git a/modules/custom/dkan_search/drush.services.yml b/modules/custom/dkan_search/drush.services.yml new file mode 100644 index 000000000..1dff060b7 --- /dev/null +++ b/modules/custom/dkan_search/drush.services.yml @@ -0,0 +1,5 @@ +services: + dkan_search:commands: + class: \Drupal\dkan_search\Drush\DkanSearchCommands + tags: + - { name: drush.command } diff --git a/modules/custom/dkan_search/src/Drush/DkanSearchCommands.php b/modules/custom/dkan_search/src/Drush/DkanSearchCommands.php new file mode 100644 index 000000000..c0061be7a --- /dev/null +++ b/modules/custom/dkan_search/src/Drush/DkanSearchCommands.php @@ -0,0 +1,25 @@ +rebuildTracker(); + } + +}