Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
clearCache () | |
addSharedInstance ($instance, $className) | |
removeSharedInstance ($className) | |
getFactory () | |
![]() | |
__construct (FactoryInterface $factory, \Magento\Framework\ObjectManager\ConfigInterface $config, array &$sharedInstances=[]) | |
![]() | |
__construct (FactoryInterface $factory, ConfigInterface $config, &$sharedInstances=[]) | |
create ($type, array $arguments=[]) | |
get ($type) | |
configure (array $configuration) | |
Static Public Member Functions | |
static | setInstance (\Magento\Framework\ObjectManagerInterface $objectManager) |
![]() | |
static | getInstance () |
static | setInstance (\Magento\Framework\ObjectManagerInterface $objectManager) |
Protected Attributes | |
$_classesToDestruct | |
$persistedInstances | |
![]() | |
$_factory | |
$_sharedInstances = [] | |
$_config | |
Additional Inherited Members | |
![]() | |
static | $_instance |
ObjectManager for integration test framework.
Definition at line 11 of file ObjectManager.php.
addSharedInstance | ( | $instance, | |
$className | |||
) |
Add shared instance.
mixed | $instance | |
string | $className |
Definition at line 90 of file ObjectManager.php.
clearCache | ( | ) |
Clear InstanceManager cache.
Definition at line 42 of file ObjectManager.php.
getFactory | ( | ) |
Definition at line 120 of file ObjectManager.php.
removeSharedInstance | ( | $className | ) |
Remove shared instance.
string | $className |
Definition at line 101 of file ObjectManager.php.
|
static |
Set objectManager.
\Magento\Framework\ObjectManagerInterface | $objectManager |
Definition at line 112 of file ObjectManager.php.
|
protected |
Definition at line 18 of file ObjectManager.php.
|
protected |
Definition at line 26 of file ObjectManager.php.