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
magento2-base
dev
tests
functional
lib
Magento
Mtf
App
State
AbstractState.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Mtf\App\State
;
7
8
use Magento\Mtf\ObjectManager;
9
13
abstract
class
AbstractState
implements
StateInterface
14
{
20
protected
$objectManager
;
21
27
private
$arguments;
28
34
protected
$isCleanInstance
=
false
;
35
40
public
function
__construct
(
41
ObjectManager
$objectManager
,
42
array $arguments = []
43
) {
44
$this->objectManager =
$objectManager
;
45
$this->arguments = $arguments;
46
}
47
51
public
function
apply
()
52
{
53
foreach
($this->arguments as $argument) {
54
$handler
= $this->objectManager->get($argument);
55
$handler
->execute($this);
56
}
57
if
($this->isCleanInstance) {
58
$this->
clearInstance
();
59
}
60
}
61
65
public
function
clearInstance
()
66
{
67
//
68
}
69
}
Magento\Mtf\App\State\AbstractState\$objectManager
$objectManager
Definition:
AbstractState.php:20
Magento\Mtf\App\State\AbstractState\__construct
__construct(ObjectManager $objectManager, array $arguments=[])
Definition:
AbstractState.php:40
Magento\Mtf\App\State\AbstractState
Definition:
AbstractState.php:13
Magento\Mtf\App\State\AbstractState\apply
apply()
Definition:
AbstractState.php:51
Magento\Mtf\App\State\AbstractState\$isCleanInstance
$isCleanInstance
Definition:
AbstractState.php:34
Magento\Mtf\App\State
Definition:
AbstractState.php:6
Magento\Mtf\App\State\AbstractState\clearInstance
clearInstance()
Definition:
AbstractState.php:65
$handler
catch(\Exception $e) $handler
Definition:
index.php:30