protected function addMailer(\Aimeos\MShop\Context\Item\Iface $context) { $mail = new \Aimeos\MW\Mail\Swift(function () { return app('mailer')->getSwiftMailer(); }); $context->setMail($mail); return $context; }