runProcessors example

if ($behavior->hookAware()) {
                // reset modified state that apps always have the same entry state                 foreach ($original->getLineItems()->getFlat() as $item) {
                    $item->markUnModifiedByApp();
                }
            }

            // move data from previous calculation into new cart             $cart->setData($original->getData());

            $this->runProcessors($original$cart$context$behavior);

            if ($behavior->hookAware()) {
                $this->executor->execute(new CartHook($cart$context));
            }

            $this->calculateAmount($context$cart);

            $cart->addErrors(
                ...$this->validator->validate($cart$context)
            );

            
Home | Imprint | This part of the site doesn't use cookies.