diff --git a/composer.json b/composer.json index 4952d34..39883ef 100644 --- a/composer.json +++ b/composer.json @@ -15,12 +15,5 @@ "type": "composer", "url": "https://packages.drupal.org/8" } - }, - "extra": { - "drush": { - "services": { - "drush.services.yml": "^10" - } - } } } diff --git a/drush.services.yml b/drush.services.yml deleted file mode 100644 index 26fedfd..0000000 --- a/drush.services.yml +++ /dev/null @@ -1,5 +0,0 @@ -services: - tide_site.commands: - class: \Drupal\tide_site\Commands\TideSiteCommands - tags: - - { name: drush.command } diff --git a/src/Commands/TideSiteCommands.php b/src/Commands/TideSiteCommands.php deleted file mode 100644 index 5396942..0000000 --- a/src/Commands/TideSiteCommands.php +++ /dev/null @@ -1,57 +0,0 @@ -output()->writeln(t('This command cannot run in Lagoon production environments.')); - } - else { - $fe_domains = getenv('FE_DOMAINS'); - if (!empty($fe_domains)) { - foreach (explode(',', $fe_domains) as $fe_domain) { - $domain = explode('|', $fe_domain); - $term = Term::load($domain[0]); - $term->set('field_site_domains', str_replace('
', "\r\n", $domain[1])); - $term->save(); - } - $this->output()->writeln(t('Domains Updated.')); - } - else { - $this->output()->writeln(t('No site specific domains were found in this environment.')); - } - } - } - catch (ConsoleException $exception) { - throw new \Exception($exception->getMessage()); - } - } - -}