mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-25 22:20:29 +01:00
28 lines
694 B
PHP
28 lines
694 B
PHP
|
<?php
|
||
|
|
||
|
use Xentral\Modules\SubscriptionCycle\Scheduler\SubscriptionCycleManualJobTask;
|
||
|
|
||
|
error_reporting(E_ERROR);
|
||
|
|
||
|
include_once dirname(__DIR__) . '/xentral_autoloader.php';
|
||
|
|
||
|
if(empty($app) || !($app instanceof ApplicationCore)){
|
||
|
$app = new ApplicationCore();
|
||
|
}
|
||
|
if(!$app->erp->ModulVorhanden('rechnungslauf')) {
|
||
|
return;
|
||
|
}
|
||
|
/** @var SubscriptionCycleManualJobTask $subscriptionCycleManualJobTask */
|
||
|
$subscriptionCycleManualJobTask = $app->Container->get('SubscriptionCycleManualJobTask');
|
||
|
try {
|
||
|
$subscriptionCycleManualJobTask->execute();
|
||
|
$subscriptionCycleManualJobTask->cleanup();
|
||
|
} catch (Exception $exception) {
|
||
|
$subscriptionCycleManualJobTask->cleanup();
|
||
|
throw $exception;
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|