| 1 | <?php |
||
| 19 | class Dotenv implements Adapter |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * Path to the .env file |
||
| 23 | * |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | private $file; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Actual dot env reader |
||
| 30 | * |
||
| 31 | * @var \Dotenv\Dotenv |
||
| 32 | */ |
||
| 33 | private $dotenv; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Setup the adapter. |
||
| 37 | * |
||
| 38 | * @param array $conf |
||
| 39 | * @return void |
||
| 40 | */ |
||
| 41 | public function setup(array $conf) |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Return a value for a given path. |
||
| 50 | * |
||
| 51 | * @param string $path |
||
| 52 | * @return string |
||
| 53 | */ |
||
| 54 | public function getValue($path) |
||
| 58 | } |
||
| 59 |