1 | <?php |
||
5 | class Environment |
||
6 | { |
||
7 | const ENV_FILE = 'env.json'; |
||
8 | |||
9 | const CONFIG_FILE = 'config.json'; |
||
10 | |||
11 | const SIGNATURE_FILE = 'signature.txt'; |
||
12 | |||
13 | protected $blnIsDev; |
||
14 | |||
15 | protected $objEnv; |
||
16 | |||
17 | public function __construct() |
||
20 | |||
21 | /** |
||
22 | * Set env to Dev |
||
23 | * |
||
24 | * @param bool $bln |
||
25 | * @return $this |
||
26 | */ |
||
27 | public function setDev($bln = true) |
||
33 | |||
34 | /** |
||
35 | * Determine if we are in development environment |
||
36 | * |
||
37 | * @return bool |
||
38 | */ |
||
39 | public function isDevEnv() |
||
52 | |||
53 | public function hasDevEnv() |
||
63 | |||
64 | public function createSettingsFile($strFilePath, $arrSettings) |
||
71 | |||
72 | public function getSettings($strFile = null, $arrSettings = []) |
||
82 | |||
83 | public function setEnvironment($strFilesFolder = null) |
||
93 | } |
||
94 |