示例#1
0
 /**
  * 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;
 }
示例#2
0
文件: Base.php 项目: mvnp/aimeos-core
 /**
  * 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);
 }