File tree Expand file tree Collapse file tree 3 files changed +21
-6
lines changed
Classes/EventListener/Order/Payment Expand file tree Collapse file tree 3 files changed +21
-6
lines changed Original file line number Diff line number Diff line change 1010 */
1111
1212use Extcode \Cart \Event \Order \EventInterface ;
13+ use Extcode \Cart \Service \SessionHandler ;
14+ use Extcode \Cart \Utility \CartUtility ;
15+ use Extcode \Cart \Utility \ParserUtility ;
1316
14- class ClearCart extends \Extcode \Cart \EventListener \ProcessOrderCreate \ClearCart
17+ class ClearCart extends \Extcode \Cart \EventListener \Order \ Finish \ClearCart
1518{
19+ public function __construct (
20+ CartUtility $ cartUtility ,
21+ ParserUtility $ parserUtility ,
22+ SessionHandler $ sessionHandler
23+ ) {
24+ parent ::__construct ($ cartUtility , $ parserUtility , $ sessionHandler );
25+ }
26+
1627 public function __invoke (EventInterface $ event ): void
1728 {
1829 $ orderItem = $ event ->getOrderItem ();
Original file line number Diff line number Diff line change @@ -17,6 +17,10 @@ services:
1717 $paymentRepository : ' @Extcode\Cart\Domain\Repository\Order\PaymentRepository'
1818
1919 Extcode\CartPaypal\EventListener\Order\Payment\ClearCart :
20+ arguments :
21+ $cartUtility : ' @Extcode\Cart\Utility\CartUtility'
22+ $parserUtility : ' @Extcode\Cart\Utility\ParserUtility'
23+ $sessionHandler : ' @Extcode\Cart\Service\SessionHandler'
2024 tags :
2125 - name : event.listener
2226 identifier : ' cart-paypal--order--payment--clear-cart'
Original file line number Diff line number Diff line change 3939 }
4040 },
4141 "require" : {
42- "php" : " >= 7.2.0 <7.5 " ,
42+ "php" : " ^ 7.2 || ^8.0 " ,
4343 "ext-curl" : " *" ,
44- "typo3/cms-core" : " ^10.4" ,
45- "typo3/cms-extbase" : " ^10.4" ,
46- "typo3/cms-frontend" : " ^10.4" ,
47- "extcode/cart" : " ^7.4 "
44+ "typo3/cms-core" : " ^10.4 || ^11.5 " ,
45+ "typo3/cms-extbase" : " ^10.4 || ^11.5 " ,
46+ "typo3/cms-frontend" : " ^10.4 || ^11.5 " ,
47+ "extcode/cart" : " ^8.0 "
4848 },
4949 "require-dev" : {
5050 "friendsofphp/php-cs-fixer" : " ^2.14" ,
You can’t perform that action at this time.
0 commit comments