Skip to content

Commit

Permalink
rename command classes to match command name
Browse files Browse the repository at this point in the history
it was rather confusing to have bin/process_all_emails.php handle router
  • Loading branch information
glensc committed Sep 21, 2017
1 parent 3993021 commit 57e367a
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion bin/check_reminders.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

require_once __DIR__ . '/../init.php';

use Eventum\Command\CheckRemindersCommand as Command;
use Eventum\Command\ReminderCheckCommand as Command;

$app = new Silly\Application();
$app->command(Command::USAGE, [new Command(), 'execute']);
Expand Down
2 changes: 1 addition & 1 deletion bin/download_emails.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

require_once __DIR__ . '/../init.php';

use Eventum\Command\DownloadEmailsCommand as Command;
use Eventum\Command\MailDownloadCommand as Command;

$app = new Silly\Application();
$app->command(Command::USAGE, [new Command(), 'execute']);
Expand Down
2 changes: 1 addition & 1 deletion bin/extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

require_once __DIR__ . '/../init.php';

use Eventum\Command\ExtensionCommand as Command;
use Eventum\Command\ExtensionEnableCommand as Command;

$app = new Silly\Application();
$app->command(Command::USAGE, [new Command(), 'execute']);
Expand Down
2 changes: 1 addition & 1 deletion bin/process_all_emails.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

require_once __DIR__ . '/../init.php';

use Eventum\Command\ProcessMailCommand as Command;
use Eventum\Command\MailRouteCommand as Command;

$app = new Silly\Application();
$app->command(Command::USAGE, [new Command(), 'execute']);
Expand Down
2 changes: 1 addition & 1 deletion bin/process_mail_queue.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

require_once __DIR__ . '/../init.php';

use Eventum\Command\MailQueueCommand as Command;
use Eventum\Command\MailQueueProcessCommand as Command;

$app = new Silly\Application();
$app->command(Command::USAGE, [new Command(), 'execute']);
Expand Down
2 changes: 1 addition & 1 deletion bin/truncate_mail_queue.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

require_once __DIR__ . '/../init.php';

use Eventum\Command\TruncateMailQueueCommand as Command;
use Eventum\Command\MailQueueTruncateCommand as Command;

$app = new Silly\Application();
$app->command(Command::USAGE, [new Command(), 'execute']);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
use Setup;
use Symfony\Component\Console\Output\OutputInterface;

class ExtensionCommand
class ExtensionEnableCommand
{
const DEFAULT_COMMAND = 'extension:enable';
const USAGE = self::DEFAULT_COMMAND . ' [filename] [classname]';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
use RuntimeException;
use Support;

class DownloadEmailsCommand
class MailDownloadCommand
{
const DEFAULT_COMMAND = 'mail:download';
const USAGE = self::DEFAULT_COMMAND . ' [username] [hostname] [mailbox]';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
use Eventum\ConcurrentLock;
use Mail_Queue;

class MailQueueCommand
class MailQueueProcessCommand
{
const DEFAULT_COMMAND = 'mail-queue:process';
const USAGE = self::DEFAULT_COMMAND;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
use Mail_Queue;
use Symfony\Component\Console\Output\OutputInterface;

class TruncateMailQueueCommand
class MailQueueTruncateCommand
{
const DEFAULT_COMMAND = 'mail-queue:truncate';
const USAGE = self::DEFAULT_COMMAND . ' [-q|--quiet] [--interval=]';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
use Routing;
use Symfony\Component\Console\Output\OutputInterface;

class ProcessMailCommand
class MailRouteCommand
{
const DEFAULT_COMMAND = 'mail:route';
const USAGE = self::DEFAULT_COMMAND . ' [filename]';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
use Reminder_Condition;
use Symfony\Component\Console\Output\OutputInterface;

class CheckRemindersCommand
class ReminderCheckCommand
{
const DEFAULT_COMMAND = 'reminders:check';
const DEFAULT_COMMAND = 'reminder:check';
const USAGE = self::DEFAULT_COMMAND . ' [--debug]';

/** @var OutputInterface */
Expand Down

0 comments on commit 57e367a

Please sign in to comment.