|
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
| __construct (\Magento\FunctionalTestingFramework\ObjectManager\Factory $factory=null, \Magento\FunctionalTestingFramework\ObjectManager\ConfigInterface $config=null, array $sharedInstances=[]) | |
| getParameters ($type, $method) | |
| prepareArguments ($object, $method, array $arguments=[]) | |
| invoke ($object, $method, array $arguments=[]) | |
| __sleep () | |
Public Member Functions inherited from ObjectManager | |
| __construct (FactoryInterface $factory, ConfigInterface $config, array $sharedInstances=[]) | |
| create ($type, array $arguments=[]) | |
| get ($type) | |
| configure (array $configuration) | |
| __sleep () | |
Static Public Member Functions | |
| static | setInstance (ObjectManager $objectManager) |
| static | getInstance () |
Protected Attributes | |
| $factory | |
Protected Attributes inherited from ObjectManager | |
| $factory | |
| $sharedInstances = [] | |
| $config | |
Static Protected Attributes | |
| static | $instance |
Class ObjectManager
Responsible for instantiating objects taking into account:
@api
Definition at line 19 of file ObjectManager.php.
| __construct | ( | \Magento\FunctionalTestingFramework\ObjectManager\Factory | $factory = null, |
| \Magento\FunctionalTestingFramework\ObjectManager\ConfigInterface | $config = null, |
||
| array | $sharedInstances = [] |
||
| ) |
ObjectManager constructor.
| ObjectManager\Factory | null | $factory | |
| ObjectManager\ConfigInterface | null | $config | |
| array | $sharedInstances |
Definition at line 41 of file ObjectManager.php.
| __sleep | ( | ) |
Avoid to serialize Closure properties
Definition at line 120 of file ObjectManager.php.
|
static |
Retrieve object manager
Definition at line 107 of file ObjectManager.php.
| getParameters | ( | $type, | |
| $method | |||
| ) |
Get list of parameters for class method
| string | $type | |
| string | $method |
Definition at line 57 of file ObjectManager.php.
| invoke | ( | $object, | |
| $method, | |||
| array | $arguments = [] |
||
| ) |
Invoke class method with prepared arguments
| object | $object | |
| string | $method | |
| array | $arguments |
Definition at line 84 of file ObjectManager.php.
| prepareArguments | ( | $object, | |
| $method, | |||
| array | $arguments = [] |
||
| ) |
Resolve and prepare arguments for class method
| object | $object | |
| string | $method | |
| array | $arguments |
Definition at line 70 of file ObjectManager.php.
|
static |
Set object manager instance
| ObjectManager | $objectManager |
Definition at line 96 of file ObjectManager.php.
|
protected |
Definition at line 26 of file ObjectManager.php.
|
staticprotected |
Definition at line 33 of file ObjectManager.php.