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-deploy
Process
QueueFactory.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Deploy\Process
;
7
8
use
Magento\Framework\ObjectManagerInterface
;
9
use
Magento\Framework\Exception\LocalizedException
;
10
use
Magento\Framework\Phrase
;
11
15
class
QueueFactory
16
{
22
private
$objectManager;
23
29
private
$type;
30
37
public
function
__construct
(
ObjectManagerInterface
$objectManager, $type = Queue::class)
38
{
39
$this->objectManager =
$objectManager
;
40
$this->type = $type;
41
}
42
50
public
function
create
(array
$arguments
= [])
51
{
52
$queue
= $this->objectManager->create($this->type,
$arguments
);
53
if
(!
$queue
instanceof
Queue
) {
54
throw
new
LocalizedException
(
55
new
Phrase
(
"Wrong queue type specified."
)
56
);
57
}
58
return
$queue
;
59
}
60
}
Magento\Framework\Exception\LocalizedException
Definition:
LocalizedException.php:17
$queue
$queue
Definition:
queue.php:21
$objectManager
$objectManager
Definition:
bootstrap.php:17
Magento\Deploy\Process\Queue
Definition:
Queue.php:20
Magento\Framework\ObjectManagerInterface
Definition:
ObjectManagerInterface.php:12
Magento\Deploy\Process\QueueFactory\create
create(array $arguments=[])
Definition:
QueueFactory.php:50
Magento\Deploy\Process\QueueFactory\__construct
__construct(ObjectManagerInterface $objectManager, $type=Queue::class)
Definition:
QueueFactory.php:37
Magento\Deploy\Process
Definition:
Queue.php:6
$arguments
$arguments
Definition:
final_price.phtml:24
Magento\Framework\Phrase
Definition:
Phrase.php:17
Magento\Framework\Phrase
Magento\Deploy\Process\QueueFactory
Definition:
QueueFactory.php:15