Publication initiale de RelaisSMS : documentation et sources nettoyees
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
|
||||
use Illuminate\Foundation\Application;
|
||||
use Symfony\Component\Console\Input\ArrayInput;
|
||||
|
||||
define('LARAVEL_START', microtime(true));
|
||||
|
||||
if (PHP_SAPI !== 'cli') {
|
||||
http_response_code(403);
|
||||
exit('Forbidden');
|
||||
}
|
||||
|
||||
require __DIR__.'/vendor/autoload.php';
|
||||
|
||||
/** @var Application $app */
|
||||
$app = require_once __DIR__.'/bootstrap/app.php';
|
||||
|
||||
$commands = [
|
||||
['command' => 'contacts:sync-carddav'],
|
||||
['command' => 'calendar:process-reminders', '--force-sync' => true],
|
||||
['command' => 'sms-campaigns:send-due'],
|
||||
['command' => 'sms-campaigns:reconcile'],
|
||||
['command' => 'sms-campaigns:prune-history'],
|
||||
];
|
||||
|
||||
$status = 0;
|
||||
|
||||
foreach ($commands as $command) {
|
||||
$commandStatus = $app->handleCommand(new ArrayInput($command));
|
||||
|
||||
if ($commandStatus !== 0) {
|
||||
$status = $commandStatus;
|
||||
}
|
||||
}
|
||||
|
||||
exit($status);
|
||||
Reference in New Issue
Block a user