[ 'bootstrap' => DRUSH_BOOTSTRAP_DRUPAL_FULL, 'callback' => 'mkbh_general_drush_command_queue_work', ], 'stripe:invoices:generate' => [ 'bootstrap' => DRUSH_BOOTSTRAP_DRUPAL_FULL, 'callback' => 'mkbh_general_drush_command_stripe_generate_invoice', 'description' => 'Generate PDF invoices for a given Stripe invoice', ], 'stripe:migrate-prices' => [ 'bootstrap' => DRUSH_BOOTSTRAP_DRUPAL_FULL, 'callback' => 'mkbh_general_drush_command_stripe_migrate_prices', 'description' => 'Migrate MobilePay subscribers to a new pricing', ], 'mobile-pay:migrate-prices' => [ 'bootstrap' => DRUSH_BOOTSTRAP_DRUPAL_FULL, 'callback' => 'mkbh_general_drush_command_mobile_pay_migrate_prices', 'description' => 'Migrate MobilePay subscribers to a new pricing', ], 'mobile-pay:refund' => [ 'bootstrap' => DRUSH_BOOTSTRAP_DRUPAL_FULL, 'callback' => 'mkbh_general_drush_command_mobile_pay_refund', 'description' => 'Refund and stop MobilePay agreement', 'options' => [ 'email' => 'User email to refund', ], ], ]; } function mkbh_general_drush_command_queue_work(): void { ini_set('max_execution_time', '-1'); ini_set('memory_limit', '-1'); (new \Drupal\mkbh_general\Drush\QueueWorkDrushCommand)->handle(); } function mkbh_general_drush_command_stripe_generate_invoice(string $stripeInvoiceKey): void { ini_set('max_execution_time', '-1'); ini_set('memory_limit', '-1'); (new \Drupal\mkbh_general\Drush\StripeGenerateInvoiceDrushCommand)->handle($stripeInvoiceKey); } function mkbh_general_drush_command_stripe_migrate_prices() { ini_set('max_execution_time', '-1'); ini_set('memory_limit', '-1'); (new \Drupal\mkbh_general\Drush\StripeMigratePricesDrushCommand())->handle(); } function mkbh_general_drush_command_mobile_pay_migrate_prices() { ini_set('max_execution_time', '-1'); ini_set('memory_limit', '-1'); (new \Drupal\mkbh_general\Drush\MobilePayMigratePricesDrushCommand())->handle(); } function mkbh_general_drush_command_mobile_pay_refund() { ini_set('max_execution_time', '-1'); ini_set('memory_limit', '-1'); (new \Drupal\mkbh_general\Drush\MobilePayRefundDrushCommand())->handle(drush_get_option('email')); }