|
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
| __construct (\Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Framework\ObjectManagerInterface $objectManager) | |
| get ($carrierCode) | |
| create ($carrierCode, $storeId=null) | |
| getIfActive ($carrierCode) | |
| createIfActive ($carrierCode, $storeId=null) | |
Protected Attributes | |
| $_scopeConfig | |
| $_objectManager | |
Class CarrierFactory
Definition at line 11 of file CarrierFactory.php.
| __construct | ( | \Magento\Framework\App\Config\ScopeConfigInterface | $scopeConfig, |
| \Magento\Framework\ObjectManagerInterface | $objectManager | ||
| ) |
| \Magento\Framework\App\Config\ScopeConfigInterface | $scopeConfig | |
| \Magento\Framework\ObjectManagerInterface | $objectManager |
Definition at line 29 of file CarrierFactory.php.
| create | ( | $carrierCode, | |
$storeId = null |
|||
| ) |
Create carrier instance
| string | $carrierCode | |
| int | null | $storeId |
Implements CarrierFactoryInterface.
Definition at line 64 of file CarrierFactory.php.
| createIfActive | ( | $carrierCode, | |
$storeId = null |
|||
| ) |
Create carrier by its code if it is active
| string | $carrierCode | |
| null | int | $storeId |
Implements CarrierFactoryInterface.
Definition at line 105 of file CarrierFactory.php.
| get | ( | $carrierCode | ) |
Get carrier instance
| string | $carrierCode |
Implements CarrierFactoryInterface.
Definition at line 43 of file CarrierFactory.php.
| getIfActive | ( | $carrierCode | ) |
Get carrier by its code if it is active
| string | $carrierCode |
Implements CarrierFactoryInterface.
Definition at line 88 of file CarrierFactory.php.
|
protected |
Definition at line 23 of file CarrierFactory.php.
|
protected |
Definition at line 18 of file CarrierFactory.php.