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 | 42 | 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 | 8 | public function save(array $answers) |
|
60 | } |
||
61 |