1 | <?php |
||
10 | class EnvConfiguration implements ConfigurationInterface |
||
11 | { |
||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | private $envfile; |
||
16 | |||
17 | /** |
||
18 | * @param string $envfile |
||
19 | * |
||
20 | * @throws EnvException If a missing or unreadable file is specified |
||
21 | */ |
||
22 | 3 | public function __construct($envfile = null) |
|
34 | |||
35 | /** |
||
36 | * @inheritDoc |
||
37 | */ |
||
38 | 1 | public function apply(Injector $injector) |
|
52 | |||
53 | /** |
||
54 | * Find a .env file by traversing up the filesystem |
||
55 | * |
||
56 | * @return string |
||
57 | * |
||
58 | * @throws EnvException If no file is found |
||
59 | */ |
||
60 | 2 | private function detectEnvFile() |
|
74 | } |
||
75 |