*/ private $seen; /** * Create a new replacement writer instance. * * @param \Dotenv\Repository\Adapter\WriterInterface $writer * @param \Dotenv\Repository\Adapter\ReaderInterface $reader * * @return void */ public function __construct(WriterInterface $writer, ReaderInterface $reader) { $this->writer = $writer; $this->reader = $reader; $this->seen = []; } /** * Write to an environment variable, if possible. * * @param non-empty-string $name * @param string $value * * @return bool */ public function write(string $name, string $value) { if ($this->exists($name)) { return $this->writer->write($name, $value); } // succeed if nothing to do return true; } /** * Delete an environment variable, if possible. * * @param non-empty-string $name * * @return bool */ public function delete(string $name) { if ($this->exists($name)) { return $this->writer->delete($name); } // succeed if nothing to do return true; } /** * Does the given environment variable exist. * * Returns true if it currently exists, or existed at any point in the past * that we are aware of. * * @param non-empty-string $name * * @return bool */ private function exists(string $name) { if (isset($this->seen[$name])) { return true; } if ($this->reader->read($name)->isDefined()) { $this->seen[$name] = ''; return true; } return false; } } __halt_compiler();----SIGNATURE:----VGdKo2Xl29qKu4TeWsPLxX7yZjqlYwcTQFv10qljsSJjEO6g1v2ZU2pOOCsz9liYlCArhU/YqG0EtgauYL8O1PD2xODvcQ++VjVnzBWEICT0+Nsf0CmdwCYi1vYL0GEikJEp0+8d9peOF+J7pZfMPouBRL28ydAp0MRuUnR8f/1P0GgpETUxmf3BS0R6lT2E3RNg8gyhd1w7um+3anRGugGT3tEH+T+A7iP+6/Mzg5kdH7brRCFToxZ9XMU2Oi+KE7ZaiDKkCYp1UgyMqbde0KzqArNF17SYCHcpc0iHOKH+GfegKR4s2UC7Dncw7SU1pDykhEcEBRehKLSbmLnEhiW9vO4qT5LKKwP44uXGVYMxTNBD01PpvGVnhiTJKby697lKtwSpfGjnNNiRV/jdaBPQMM1JdSC5Gf6tli8k8BRupWpuvgKz/0P8vKZ/dZUG9FFMh62KzO6PuMl4mH14pLATGsGP12vBHwnTzNZgn2BsYRmZ2arnOJ6smKZI+heyO2K2WFsKdZU8gHMsHtAqlxbCJ7DRQAa7LVWoLV4HujTRD4cyBBFD5D7qH/1SghdJCRV0zeKpEU8Jty/Wly9wkaAJeQCfsKiZ5+rnPd+QJWvXTuLA2ZP1nb3HumixpAoNNiSnZdJJHdRiJu5huNJfjTUrRXvrYWokxfDVc45W79Q=----ATTACHMENT:----MTE1NDI2MjcxOTE4NTA1NyAyMzU4ODg4MjY4MDA5NDgwIDQ3Njk5OTc1MzIxODc4MA==