Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (ObjectManagerInterface $objectManager, $type=Package::class) | |
create (array $arguments) | |
__construct | ( | ObjectManagerInterface | $objectManager, |
$type = Package::class |
|||
) |
PackageFactory constructor
ObjectManagerInterface | $objectManager | |
string | $type |
Definition at line 32 of file PackageFactory.php.
create | ( | array | $arguments | ) |
Create new instance of Package object
Since returned type can be configured via DI configuration, the method does check type of created object and throws exception if that instance is not successor of \Magento\Deploy\Package
array | $arguments |
LocalizedException |
Definition at line 48 of file PackageFactory.php.