← All changes
|
src/Controllers/Hooks/Order/class-order-controller.php
+1
-20
trunk
→
4.1.0
View file →
| @@ -9,9 +9,8 @@ | ||
| 9 | 9 | namespace SeQura\WC\Controllers\Hooks\Order; |
| 10 | 10 | |
| 11 | 11 | use SeQura\Core\Infrastructure\Logger\LogContextData; |
| 12 | 12 | use SeQura\WC\Controllers\Controller; |
| 13 | -use SeQura\WC\Services\Cart\Interface_Cart_Service; | |
| 14 | 13 | use SeQura\WC\Services\Log\Interface_Logger_Service; |
| 15 | 14 | use SeQura\WC\Services\Order\Interface_Order_Service; |
| 16 | 15 | use Throwable; |
| 17 | 16 | use WC_Order; |
| @@ -28,26 +27,17 @@ | ||
| 28 | 27 | */ |
| 29 | 28 | private $order_service; |
| 30 | 29 | |
| 31 | 30 | /** |
| 32 | - * Cart service | |
| 33 | - * | |
| 34 | - * @var Interface_Cart_Service | |
| 35 | - */ | |
| 36 | - private $cart_service; | |
| 37 | - | |
| 38 | - /** | |
| 39 | 31 | * Constructor |
| 40 | 32 | */ |
| 41 | 33 | public function __construct( |
| 42 | 34 | Interface_Logger_Service $logger, |
| 43 | 35 | string $templates_path, |
| 44 | - Interface_Order_Service $order_service, | |
| 45 | - Interface_Cart_Service $cart_service | |
| 36 | + Interface_Order_Service $order_service | |
| 46 | 37 | ) { |
| 47 | 38 | parent::__construct( $logger, $templates_path ); |
| 48 | 39 | $this->order_service = $order_service; |
| 49 | - $this->cart_service = $cart_service; | |
| 50 | 40 | |
| 51 | 41 | \add_action( 'admin_notices', array( $this, 'display_notices' ) ); |
| 52 | 42 | } |
| 53 | 43 | |
| @@ -193,15 +183,6 @@ | ||
| 193 | 183 | return; |
| 194 | 184 | } |
| 195 | 185 | |
| 196 | 186 | $this->order_service->migrate_data(); |
| 197 | - } | |
| 198 | - | |
| 199 | - /** | |
| 200 | - * Create the Cart Info object for the current session if it doesn't exist. | |
| 201 | - * | |
| 202 | - * @return void | |
| 203 | - */ | |
| 204 | - public function ensure_cart_info_exists() { | |
| 205 | - $this->cart_service->get_cart_info_from_session(); | |
| 206 | 187 | } |
| 207 | 188 | } |