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-config
Model
Config
Reader
Source
Deployed
DocumentRoot.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Config\Model\Config\Reader\Source\Deployed
;
8
9
use
Magento\Framework\Config\ConfigOptionsListConstants
;
10
use
Magento\Framework\App\Filesystem\DirectoryList
;
11
use
Magento\Framework\App\DeploymentConfig
;
12
19
class
DocumentRoot
20
{
24
private
$config;
25
30
public
function
__construct
(
DeploymentConfig
$config)
31
{
32
$this->config =
$config
;
33
}
34
42
public
function
getPath
()
43
{
44
return
$this->
isPub
() ?
DirectoryList::PUB
:
DirectoryList::ROOT
;
45
}
46
55
public
function
isPub
()
56
{
57
return
(
bool
)$this->config->get(ConfigOptionsListConstants::CONFIG_PATH_DOCUMENT_ROOT_IS_PUB);
58
}
59
}
Magento\Config\Model\Config\Reader\Source\Deployed\DocumentRoot
Definition:
DocumentRoot.php:19
$config
$config
Definition:
fraud_order.php:17
Magento\Config\Model\Config\Reader\Source\Deployed
Definition:
DocumentRoot.php:7
Magento\Framework\App\DeploymentConfig
Definition:
DeploymentConfig.php:17
Magento\Config\Model\Config\Reader\Source\Deployed\DocumentRoot\getPath
getPath()
Definition:
DocumentRoot.php:42
Magento\Framework\Config\ConfigOptionsListConstants
Definition:
ConfigOptionsListConstants.php:16
Magento\Framework\App\Filesystem\DirectoryList
Definition:
DirectoryList.php:13
Magento\Framework\App\Filesystem\DirectoryList\PUB
const PUB
Definition:
DirectoryList.php:43
Magento\Config\Model\Config\Reader\Source\Deployed\DocumentRoot\__construct
__construct(DeploymentConfig $config)
Definition:
DocumentRoot.php:30
Magento\Framework\App\DeploymentConfig
Definition:
CommentParser.php:6
Magento\Config\Model\Config\Reader\Source\Deployed\DocumentRoot\isPub
isPub()
Definition:
DocumentRoot.php:55
Magento\Framework\App\Filesystem\DirectoryList\ROOT
const ROOT
Definition:
DirectoryList.php:18