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
setup-integration
framework
Magento
TestFramework
Deploy
ParametersHolder.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\TestFramework\Deploy
;
7
8
use
Magento\Framework\App\Filesystem\DirectoryList
;
9
use
Magento\Framework\Shell
;
10
use
Magento\Setup\Console\Command\InstallCommand
;
11
15
class
ParametersHolder
16
{
22
private
$initParams;
23
29
public
function
getInitParams
()
30
{
31
if
(!isset($this->initParams)) {
32
$customDirs = $this->getCustomDirs();
33
$initParams = [
34
\Magento\Framework\App\Bootstrap::INIT_PARAM_FILESYSTEM_DIR_PATHS
=> $customDirs,
35
];
36
$this->initParams = [
'magento-init-params'
=> urldecode(http_build_query($initParams))];
37
}
38
return
$this->initParams;
39
}
40
51
public
function
getDbData
(
$resource
)
52
{
53
$dbData = include TESTS_INSTALLATION_DB_CONFIG_FILE;
54
return
$dbData[
$resource
];
55
}
56
62
private
function
getCustomDirs()
63
{
64
$installDir
= TESTS_TEMP_DIR;
65
$path
=
DirectoryList::PATH
;
66
$var =
"{$installDir}/var"
;
67
$customDirs = [
68
DirectoryList::CONFIG
=> [
$path
=>
"{$installDir}/etc"
],
69
DirectoryList::VAR_DIR
=> [
$path
=> $var],
70
];
71
return
$customDirs;
72
}
73
}
Magento\TestFramework\Deploy\ParametersHolder\getDbData
getDbData($resource)
Definition:
ParametersHolder.php:51
Magento\Framework\App\Filesystem\DirectoryList\VAR_DIR
const VAR_DIR
Definition:
DirectoryList.php:58
Magento\Framework\App\Filesystem\DirectoryList\CONFIG
const CONFIG
Definition:
DirectoryList.php:28
Magento\TestFramework\Deploy\ParametersHolder\getInitParams
getInitParams()
Definition:
ParametersHolder.php:29
Magento\TestFramework\Deploy
Definition:
CliCommand.php:6
Magento\Framework\Shell
Definition:
CommandRenderer.php:6
Magento\Framework\App\Bootstrap\INIT_PARAM_FILESYSTEM_DIR_PATHS
const INIT_PARAM_FILESYSTEM_DIR_PATHS
Definition:
Bootstrap.php:62
$resource
$resource
Definition:
bulk.php:12
$installDir
$installDir
Definition:
bootstrap.php:55
Magento\TestFramework\Deploy\ParametersHolder
Definition:
ParametersHolder.php:15
Magento\Framework\App\Filesystem\DirectoryList
Definition:
DirectoryList.php:13
Magento\Framework\Filesystem\DirectoryList\PATH
const PATH
Definition:
DirectoryList.php:29
Magento\Setup\Console\Command\InstallCommand
Definition:
InstallCommand.php:30
$path
$path
Definition:
import_with_filesystem_images.php:14