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-signifyd
Model
CaseServices
UpdatingServiceFactory.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Signifyd\Model\CaseServices
;
7
8
use
Magento\Framework\ObjectManagerInterface
;
9
use
Magento\Signifyd\Model\MessageGenerators\GeneratorFactory
;
10
use
Magento\Signifyd\Model\Config
;
11
17
class
UpdatingServiceFactory
18
{
23
private
static
$caseTest =
'cases/test'
;
24
28
private
$objectManager;
29
33
private
$generatorFactory;
34
38
private
$config;
39
47
public
function
__construct
(
48
ObjectManagerInterface
$objectManager,
49
GeneratorFactory
$generatorFactory,
50
Config
$config
51
) {
52
$this->objectManager =
$objectManager
;
53
$this->generatorFactory = $generatorFactory;
54
$this->config =
$config
;
55
}
56
65
public
function
create
(
$type
)
66
{
67
if
(!$this->config->isActive() ||
$type
=== self::$caseTest) {
68
return
$this->objectManager->create(StubUpdatingService::class);
69
}
70
71
$messageGenerator = $this->generatorFactory->create(
$type
);
72
$service
= $this->objectManager->create(UpdatingService::class, [
73
'messageGenerator'
=> $messageGenerator
74
]);
75
76
return
$service
;
77
}
78
}
$service
$service
Definition:
quote_payment_express.php:9
Magento\Signifyd\Model\CaseServices\UpdatingServiceFactory
Definition:
UpdatingServiceFactory.php:17
$objectManager
$objectManager
Definition:
bootstrap.php:17
$config
$config
Definition:
fraud_order.php:17
Magento\Framework\ObjectManagerInterface
Definition:
ObjectManagerInterface.php:12
$type
$type
Definition:
item.phtml:13
Magento\Signifyd\Model\MessageGenerators\GeneratorFactory
Definition:
GeneratorFactory.php:14
Magento\Signifyd\Model\Config
Definition:
Config.php:16
Magento\Signifyd\Model\CaseServices
Definition:
CreationServiceTest.php:6
Magento\Signifyd\Model\CaseServices\UpdatingServiceFactory\create
create($type)
Definition:
UpdatingServiceFactory.php:65
Magento\Framework\App\ResourceConnection\Config
Definition:
Config.php:14
Magento\Signifyd\Model\CaseServices\UpdatingServiceFactory\__construct
__construct(ObjectManagerInterface $objectManager, GeneratorFactory $generatorFactory, Config $config)
Definition:
UpdatingServiceFactory.php:47