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
tests
app
Magento
ReleaseNotification
Mtf
App
State
NotificationHandler.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\ReleaseNotification\Mtf\App\State
;
8
9
use
Magento\Mtf\App\State\AbstractState
;
10
use Magento\Mtf\Config\DataInterface;
11
use
Magento\Mtf\App\State\StateHandlerInterface
;
12
use
Magento\Mtf\Util\Protocol\CurlTransport
;
13
use
Magento\Mtf\Util\Protocol\CurlTransport\BackendDecorator
;
14
18
class
NotificationHandler
implements
StateHandlerInterface
19
{
23
private
$configuration;
24
30
public
function
__construct
(DataInterface $configuration)
31
{
32
$this->configuration =
$configuration
;
33
}
34
43
public
function
execute
(
AbstractState
$state)
44
{
45
$url
= $_ENV[
'app_backend_url'
] .
'admin/releaseNotification/notification/markUserNotified/?isAjax=true'
;
46
$curl =
new
BackendDecorator
(
new
CurlTransport(), $this->configuration);
47
$curl->write(
$url
, []);
48
$response
= json_decode($curl->read(),
true
);
49
$curl->close();
50
if
(isset(
$response
[
'success'
])) {
51
return
$response
[
'success'
];
52
}
53
return
false
;
54
}
55
}
$response
$response
Definition:
404.php:11
$url
$url
Definition:
query_redirect.php:14
$configuration
$configuration
Definition:
index.php:33
Magento\ReleaseNotification\Mtf\App\State\NotificationHandler
Definition:
NotificationHandler.php:18
Magento\Mtf\Util\Protocol\CurlTransport
Definition:
BackendDecorator.php:7
Magento\ReleaseNotification\Mtf\App\State
Definition:
NotificationHandler.php:7
Magento\Mtf\Util\Protocol\CurlTransport\BackendDecorator
Definition:
BackendDecorator.php:16
Magento\ReleaseNotification\Mtf\App\State\NotificationHandler\execute
execute(AbstractState $state)
Definition:
NotificationHandler.php:43
Magento\ReleaseNotification\Mtf\App\State\NotificationHandler\__construct
__construct(DataInterface $configuration)
Definition:
NotificationHandler.php:30
Magento\Mtf\App\State\StateHandlerInterface
Definition:
StateHandlerInterface.php:12
Magento\Mtf\App\State\AbstractState
Definition:
AbstractState.php:13