| 1 | <?php |
||
| 6 | class EnvWriter |
||
| 7 | { |
||
| 8 | /** @var string */ |
||
| 9 | protected $directory; |
||
| 10 | |||
| 11 | /** @var string */ |
||
| 12 | protected $file; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * EnvWriter constructor. |
||
| 16 | * |
||
| 17 | * @param string $directory |
||
| 18 | * @param string $file |
||
| 19 | */ |
||
| 20 | public function __construct($directory, $file = '.env') |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Save the given answers to the env file. |
||
| 28 | * |
||
| 29 | * @throws WritableException |
||
| 30 | * @param array $answers |
||
| 31 | */ |
||
| 32 | public function save(array $answers) |
||
| 55 | } |
||
| 56 |