Commit 18cb4707 authored by gbyte.co's avatar gbyte.co

Fix drush 9 service definition location to avoid conflicts with previous drush versions

parent 50b2be9d
services:
simple_sitemap.commands:
class: \Drupal\simple_sitemap\Commands\SimpleSitemapCommands
arguments:
- '@simple_sitemap.generator'
tags:
- { name: drush.command }
......@@ -90,10 +90,3 @@ services:
public: false
arguments:
- simple_sitemap
simple_sitemap.commands:
class: \Drupal\simple_sitemap\Commands\SimpleSitemapCommands
arguments:
- '@simple_sitemap.generator'
tags:
- { name: drush.command }
......@@ -28,7 +28,8 @@ class SimpleSitemapCommands extends DrushCommands {
* Regenerate the XML sitemap according to the module settings.
*
* @command simple-sitemap:generate
* @aliases ss:generate, ssg
* @validate-module-enabled simple_sitemap
* @aliases ss:generate, ssg, simple_sitemap:generate, simple_sitemap-generate
*/
public function generate() {
$this->generator->generateSitemap('drush');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment