public function makeExampleEnvArray($envPath)
 {
     $this->ba->setFilePath($envPath);
     $this->ba->buildOutNewEnvArray();
     $envSettings = $this->ba->getEnv();
     $exampleSettings = [];
     foreach ($envSettings as $setting) {
         if ($this->isLineAComment($setting)) {
             $exampleSettings[] = $setting;
         } else {
             list($name, $value) = $this->splitSettingStringIntoParts($setting);
             $exampleSettings[] = $name . '=';
         }
     }
     return $exampleSettings;
 }
Exemplo n.º 2
0
 protected function writeTemp()
 {
     File::put("/tmp/env_temp", implode("\n", $this->ba->getTargetEnv()));
 }