Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ParametersHolder.php
Go to the documentation of this file.
1 <?php
7 
11 
16 {
22  private $initParams;
23 
29  public function getInitParams()
30  {
31  if (!isset($this->initParams)) {
32  $customDirs = $this->getCustomDirs();
33  $initParams = [
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;
66  $var = "{$installDir}/var";
67  $customDirs = [
68  DirectoryList::CONFIG => [$path => "{$installDir}/etc"],
69  DirectoryList::VAR_DIR => [$path => $var],
70  ];
71  return $customDirs;
72  }
73 }
$resource
Definition: bulk.php:12
$installDir
Definition: bootstrap.php:55