Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Data Structures | |
class | ConfigLoaderTest |
Public Member Functions | |
__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 | getInstance () |
static | setInstance (\Magento\Framework\ObjectManagerInterface $objectManager) |
Static Protected Attributes | |
static | $_instance |
Additional Inherited Members | |
![]() | |
$_factory | |
$_sharedInstances = [] | |
$_config | |
Direct usage of this class is strictly discouraged.
Wrapper around object manager with workarounds to access it in client code. Provides static access to objectManager, that is required for unserialization of objects.
@api @SuppressWarnings(PHPMD.CouplingBetweenObjects)
Definition at line 20 of file ObjectManager.php.
__construct | ( | FactoryInterface | $factory, |
\Magento\Framework\ObjectManager\ConfigInterface | $config, | ||
array & | $sharedInstances = [] |
||
) |
FactoryInterface | $factory | |
\Magento\Framework\ObjectManager\ConfigInterface | $config | |
array | $sharedInstances |
Definition at line 58 of file ObjectManager.php.
|
static |
Retrieve object manager
Definition at line 33 of file ObjectManager.php.
|
static |
Set object manager instance
\Magento\Framework\ObjectManagerInterface | $objectManager |
Definition at line 48 of file ObjectManager.php.
|
staticprotected |
Definition at line 25 of file ObjectManager.php.