Aimeos Context Serialization Issue
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Re: Aimeos Context Serialization Issue
Hey, guys!
The problem turned out to be not in getDepositeOrder(), but in the event registration for plugins.
The problem is that in the listeners object there are closures here is an example of the object. How can I remove it from here ?
I have attached screenshots where there are closures in the listeners property.
The problem turned out to be not in getDepositeOrder(), but in the event registration for plugins.
The problem is that in the listeners object there are closures here is an example of the object. How can I remove it from here ?
I have attached screenshots where there are closures in the listeners property.
Code: Select all
public function register(\Aimeos\MW\Observer\Publisher\Iface $p): \Aimeos\MW\Observer\Listener\Iface
{
$p->attach($this->object(), 'addProduct.after');
$p->attach($this->object(), 'deleteProduct.after');
return $this;
}
- Attachments
-
- Снимок экрана 2025-01-08 в 13.50.28.png (38.58 KiB) Viewed 775 times
-
- Снимок экрана 2025-01-08 в 13.49.01.png (90.61 KiB) Viewed 775 times
Re: Aimeos Context Serialization Issue
Use this to remove all listeners:
Code: Select all
$orderItem->off()
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star