mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-11-15 04:27:14 +01:00
Fix usage of Versandarten by cronjobs
This commit is contained in:
parent
b14265b49d
commit
88eb1757b2
@ -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)
|
||||
|
@ -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))
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user