diff --git a/drush.services.yml b/drush.services.yml index 56b4fe8..0cd15ad 100644 --- a/drush.services.yml +++ b/drush.services.yml @@ -2,7 +2,6 @@ services: oit.commands: class: \Drupal\oit\Commands\OitCommands arguments: - - '@servicenow.princess.list' - '@messenger' - '@oit.teamsalert' - '@database' diff --git a/src/Commands/OitCommands.php b/src/Commands/OitCommands.php index 712856f..19dc608 100644 --- a/src/Commands/OitCommands.php +++ b/src/Commands/OitCommands.php @@ -3,7 +3,6 @@ namespace Drupal\oit\Commands; use Drupal\Core\Messenger\MessengerInterface; -use Drupal\servicenow\Plugin\PrincessList; use Drush\Commands\DrushCommands; use Drupal\oit\Plugin\TeamsAlert; use Drupal\oit\Plugin\TopPages; @@ -15,13 +14,6 @@ */ class OitCommands extends DrushCommands { - /** - * Princess List. - * - * @var \Drupal\servicenow\Plugin\PrincessList - */ - protected $princessList; - /** * The Messenger service. * @@ -61,7 +53,6 @@ class OitCommands extends DrushCommands { * Construct object. */ public function __construct( - PrincessList $princess_list, MessengerInterface $messenger, TeamsAlert $teams_alert, Connection $database, @@ -69,7 +60,6 @@ public function __construct( TopPages $top_pages, ) { parent::__construct(); - $this->princessList = $princess_list; $this->messenger = $messenger; $this->teamsAlert = $teams_alert; $this->database = $database; @@ -77,34 +67,6 @@ public function __construct( $this->topPages = $top_pages; } - /** - * Rebuild Princess List. - * - * @command oit:reload-princess - * @aliases oit:rp - */ - public function reloadPrincess() { - $this->princessList->reload(); - $this->messenger->addMessage('Princess List reloaded.'); - } - - /** - * Load Princess List. - * - * @param bool $incremental - * Set to 1 or 0 to incrementally load. - * - * @usage oit:lp 1 - * Loads users into princess list incrementally. - * - * @command oit:load-princess - * @aliases oit:lp - */ - public function loadPrincess($incremental = 0) { - $this->princessList->cron($incremental); - $this->messenger->addMessage('Princess List Loaded.'); - } - /** * Send Teams Alert. *