Skip to content

Commit

Permalink
enable $isSingleCommand for all cli scripts
Browse files Browse the repository at this point in the history
seems to require symfony/console 3.2
eventum#279 (comment)
  • Loading branch information
glensc committed Sep 9, 2017
1 parent b293e14 commit fdf0b04
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bin/check_reminders.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@

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

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

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

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

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

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

$app = new Silly\Application();
$app->command(Command::USAGE, [new Command(), 'execute']);
$app->setDefaultCommand(Command::DEFAULT_COMMAND);
$app->setDefaultCommand(Command::DEFAULT_COMMAND, true);
$app->run();
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
"smarty-gettext/smarty-gettext": "~1.0",
"smarty/smarty": "~3.1.12",
"sphinx/php-sphinxapi": "2.0.*",
"symfony/console": "^3.2.0",
"symfony/event-dispatcher": "~2.7.0",
"symfony/filesystem": "~2.7.0",
"symfony/http-foundation": "~2.7.0",
Expand Down

0 comments on commit fdf0b04

Please sign in to comment.