From 807b98012f139553abcced7207c57d8b233300a4 Mon Sep 17 00:00:00 2001 From: Daniel Seifert Date: Mon, 11 Jul 2022 15:57:09 +0200 Subject: [PATCH] remove StartController extension --- .../Controller/StartController.php | 41 ------------------- src/metadata.php | 5 ++- 2 files changed, 3 insertions(+), 43 deletions(-) delete mode 100644 src/Modules/Application/Controller/StartController.php diff --git a/src/Modules/Application/Controller/StartController.php b/src/Modules/Application/Controller/StartController.php deleted file mode 100644 index 9c2d5cf..0000000 --- a/src/Modules/Application/Controller/StartController.php +++ /dev/null @@ -1,41 +0,0 @@ - - * @link http://www.oxidmodule.com - */ - -namespace D3\Linkmobility4OXID\Modules\Application\Controller; - -use D3\Linkmobility4OXID\Application\Model\Sms; -use D3\Linkmobility4OXID\Modules\Core\EmailCore; -use OxidEsales\Eshop\Application\Model\Order; -use OxidEsales\Eshop\Application\Model\User; -use OxidEsales\Eshop\Core\Email; - -class StartController extends StartController_parent -{ - public function render() - { - $message = "testMessagetestMessagetestMessagetestMessagetestMessagetestMessage"; - //$message = "test\tMessage\ttest\tMessage"; - - $order = oxNew(Order::class); - $order->load('eda00356201d7ec2bcf31166fa6c37dd'); - - - /** @var EmailCore $mail */ - $mail = oxNew(Email::class); - $mail->d3SendOrderFinishedMessageToUser($order); - - return parent::render(); - } -} \ No newline at end of file diff --git a/src/metadata.php b/src/metadata.php index a8b2bd8..f2986a7 100644 --- a/src/metadata.php +++ b/src/metadata.php @@ -5,7 +5,9 @@ use D3\Linkmobility4OXID\Application\Controller\Admin\AdminOrder; use D3\Linkmobility4OXID\Application\Controller\Admin\AdminUser; +use D3\Linkmobility4OXID\Modules\Application\Model\OrderModel; use D3\Linkmobility4OXID\Modules\Core\EmailCore; +use OxidEsales\Eshop\Application\Model\Order; use OxidEsales\Eshop\Core\Email; $sMetadataVersion = '2.1'; @@ -28,9 +30,8 @@ $aModule = [ 'email' => 'support@shopmodule.com', 'url' => 'https://www.oxidmodule.com/', 'extend' => [ - \OxidEsales\Eshop\Application\Controller\StartController::class => \D3\Linkmobility4OXID\Modules\Application\Controller\StartController::class, Email::class => EmailCore::class, - \OxidEsales\Eshop\Application\Model\Order::class => \D3\Linkmobility4OXID\Modules\Application\Model\OrderModel::class + Order::class => OrderModel::class ], 'controllers' => [ 'd3linkmobility_user' => AdminUser::class,