/** * Initializes the plugin instance * * @param \Aimeos\MShop\Context\Item\Iface $context Context object with required objects * @param \Aimeos\MShop\Plugin\Item\Iface $item Plugin item object * @param \Aimeos\MShop\Plugin\Provider\Iface $provider Plugin provider object */ public function __construct(\Aimeos\MShop\Context\Item\Iface $context, \Aimeos\MShop\Plugin\Item\Iface $item, \Aimeos\MShop\Plugin\Provider\Iface $provider) { parent::__construct($context, $item); $this->object = $provider; }
/** * Initializes the object instance * * PHP 7 fails with a wierd fatal error that decorator constructors must be * compatible with the constructor of the factory interface if this * intermediate constructor isn't implemented! * * @param \Aimeos\MShop\Context\Item\Iface $context Context object with required objects * @param \Aimeos\MShop\Plugin\Item\Iface $item Plugin item object */ public function __construct(\Aimeos\MShop\Context\Item\Iface $context, \Aimeos\MShop\Plugin\Item\Iface $item) { parent::__construct($context, $item); }