Fix usage of Versandarten by cronjobs

This commit is contained in:
Andreas Palm 2023-01-29 23:33:33 +01:00
parent b14265b49d
commit 88eb1757b2
3 changed files with 6 additions and 6 deletions

View File

@ -7,7 +7,7 @@ use Xentral\Modules\ShippingMethod\Model\Product;
abstract class Versanddienstleister
{
protected int $id;
protected Application $app;
protected ApplicationCore $app;
protected string $type;
protected int $projectId;
protected ?int $labelPrinterId;
@ -16,7 +16,7 @@ abstract class Versanddienstleister
protected ?int $businessLetterTemplateId;
protected ?object $settings;
public function __construct(Application $app, ?int $id)
public function __construct(ApplicationCore $app, ?int $id)
{
$this->app = $app;
if ($id === null || $id === 0)

View File

@ -19,7 +19,7 @@ class Versandart_sendcloud extends Versanddienstleister
protected SendCloudApi $api;
protected array $options;
public function __construct(Application $app, ?int $id)
public function __construct(ApplicationCore $app, ?int $id)
{
parent::__construct($app, $id);
if (!isset($this->id))

View File

@ -21,7 +21,7 @@ use Xentral\Widgets\ClickByClickAssistant\VueUtil;
class Versandarten {
const MODULE_NAME = 'ShippingMethod';
var Application $app;
var ApplicationCore $app;
/** @var string[] $stylesheet */
public array $stylesheet = [
'./classes/Modules/Appstore/www/css/tilegrid.css',
@ -35,10 +35,10 @@ class Versandarten {
/**
* Versandarten constructor.
*
* @param Application $app
* @param ApplicationCore $app
* @param bool $intern
*/
public function __construct(Application $app, bool $intern = false)
public function __construct(ApplicationCore $app, bool $intern = false)
{
$this->app=$app;
if($intern) {