| 1 | <?php |
||
| 7 | class EnvLoader implements Loader |
||
| 8 | { |
||
| 9 | /** @var string */ |
||
| 10 | protected $pattern; |
||
| 11 | |||
| 12 | 3 | public function __construct(string $pattern = '~^[a-z_][a-z0-9_]*\.env$~') |
|
| 16 | |||
| 17 | /** |
||
| 18 | * {@inheritdoc} |
||
| 19 | */ |
||
| 20 | 3 | public function test(string $path): bool |
|
| 24 | |||
| 25 | /** |
||
| 26 | * {@inheritdoc} |
||
| 27 | */ |
||
| 28 | 3 | public function load(string $path) |
|
| 32 | } |
||
| 33 |