1 | <?php |
||
8 | class EnvironmentManager |
||
9 | { |
||
10 | /** |
||
11 | * @var string |
||
12 | */ |
||
13 | private $envPath; |
||
14 | |||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | private $envExamplePath; |
||
19 | |||
20 | /** |
||
21 | * Set the .env and .env.example paths. |
||
22 | */ |
||
23 | public function __construct() |
||
28 | |||
29 | /** |
||
30 | * Get the content of the .env file. |
||
31 | * |
||
32 | * @return string |
||
33 | */ |
||
34 | public function getEnvContent($request) |
||
47 | |||
48 | /** |
||
49 | * Save the edited content to the file. |
||
50 | * |
||
51 | * @param Request $request |
||
52 | * @return boolean |
||
53 | */ |
||
54 | public function saveFile(Request $request) |
||
69 | } |
||
70 |