43 $this->_sharedInstances = &$sharedInstances;
44 $this->_sharedInstances[\Magento\Framework\ObjectManagerInterface::class] = $this;
56 return $this->_factory->create($this->_config->getPreference(
$type),
$arguments);
69 if (!isset($this->_sharedInstances[
$type])) {
70 $this->_sharedInstances[
$type] = $this->_factory->create(
$type);
72 return $this->_sharedInstances[
$type];
__construct(FactoryInterface $factory, ConfigInterface $config, &$sharedInstances=[])
configure(array $configuration)
create($type, array $arguments=[])