Example #1
0
 /**
  * @param FactoryInterface $factory
  * @param \Magento\Framework\ObjectManager\ConfigInterface $config
  * @param array $sharedInstances
  */
 public function __construct(FactoryInterface $factory, \Magento\Framework\ObjectManager\ConfigInterface $config, array &$sharedInstances = [])
 {
     parent::__construct($factory, $config, $sharedInstances);
     self::$_instance = $this;
 }
Example #2
0
 /**
  * @constructor
  * @param \Mtf\ObjectManager\Factory $factory
  * @param \Magento\Framework\ObjectManager\Config $config
  * @param array $sharedInstances
  */
 public function __construct(\Mtf\ObjectManager\Factory $factory = null, \Magento\Framework\ObjectManager\Config $config = null, array $sharedInstances = [])
 {
     parent::__construct($factory, $config, $sharedInstances);
     $this->_sharedInstances['Mtf\\ObjectManager'] = $this;
 }