Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-multishipping
Model
Checkout
Type
Multishipping
PlaceOrderFactory.php
Go to the documentation of this file.
1
<?php
6
declare(strict_types=1);
7
8
namespace
Magento\Multishipping\Model\Checkout\Type\Multishipping
;
9
10
use
Magento\Framework\ObjectManagerInterface
;
11
15
class
PlaceOrderFactory
16
{
20
private
$objectManager;
21
25
private
$placeOrderPool;
26
31
public
function
__construct
(
32
ObjectManagerInterface
$objectManager,
33
PlaceOrderPool
$placeOrderPool
34
) {
35
$this->objectManager =
$objectManager
;
36
$this->placeOrderPool = $placeOrderPool;
37
}
38
43
public
function
create
(
string
$paymentProviderCode):
PlaceOrderInterface
44
{
45
$service
= $this->placeOrderPool->get($paymentProviderCode);
46
if
(
$service
===
null
) {
47
$service
= $this->objectManager->get(PlaceOrderDefault::class);
48
}
49
50
return
$service
;
51
}
52
}
$service
$service
Definition:
quote_payment_express.php:9
$objectManager
$objectManager
Definition:
bootstrap.php:17
Magento\Multishipping\Model\Checkout\Type\Multishipping\PlaceOrderInterface
Definition:
PlaceOrderInterface.php:17
Magento\Framework\ObjectManagerInterface
Definition:
ObjectManagerInterface.php:12
Magento\Multishipping\Model\Checkout\Type\Multishipping
Definition:
PlaceOrderDefault.php:8
Magento\Multishipping\Model\Checkout\Type\Multishipping\PlaceOrderFactory
Definition:
PlaceOrderFactory.php:15
Magento\Multishipping\Model\Checkout\Type\Multishipping\PlaceOrderFactory\create
create(string $paymentProviderCode)
Definition:
PlaceOrderFactory.php:43
Magento\Multishipping\Model\Checkout\Type\Multishipping\PlaceOrderPool
Definition:
PlaceOrderPool.php:18
Magento\Multishipping\Model\Checkout\Type\Multishipping\PlaceOrderFactory\__construct
__construct(ObjectManagerInterface $objectManager, PlaceOrderPool $placeOrderPool)
Definition:
PlaceOrderFactory.php:31