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
setup
src
Magento
Setup
Controller
License.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Setup\Controller
;
7
8
use
Magento\Setup\Model\License
as LicenseModel;
9
use Zend\Mvc\Controller\AbstractActionController;
10
use Zend\View\Model\ViewModel;
11
17
class
License
extends
AbstractActionController
18
{
24
protected
$license
;
25
31
public
function
__construct
(LicenseModel
$license
)
32
{
33
$this->license =
$license
;
34
}
35
41
public
function
indexAction
()
42
{
43
$contents
= $this->license->getContents();
44
$view =
new
ViewModel;
45
if
(
$contents
===
false
) {
46
$view->setTemplate(
'error/404'
);
47
$view->setVariable(
'message'
,
'Cannot find license file.'
);
48
}
else
{
49
$view->setTerminal(
true
);
50
$view->setVariable(
'license'
,
$contents
);
51
}
52
return
$view;
53
}
54
}
Magento\Setup\Controller\License\indexAction
indexAction()
Definition:
License.php:41
$contents
$contents
Definition:
website.php:14
Magento\Setup\Controller\License
Definition:
License.php:17
Magento\Setup\Controller\License\$license
$license
Definition:
License.php:24
Magento\Setup\Controller\License\__construct
__construct(LicenseModel $license)
Definition:
License.php:31
Magento\Setup\Model\License
Definition:
License.php:17
Magento\Setup\Controller
Definition:
UrlCheckTest.php:6