PHP Class App\Services\Config\DotenvReader

Inheritance: implements App\Services\Config\ConfigReaderInterface
Show file Open project: ngmy/webloyer Class Usage Examples

Protected Properties

Property Type Description
$fs
$path

Public Methods

Method Description
__construct ( App\Services\Filesystem\FilesystemInterface $fs, $path )
getConfig ( string $name ) : string | null Get configuration from a .env file.

Protected Methods

Method Description
nullIfBlank ( $value )

Method Details

__construct() public method

public __construct ( App\Services\Filesystem\FilesystemInterface $fs, $path )
$fs App\Services\Filesystem\FilesystemInterface

getConfig() public method

Get configuration from a .env file.
public getConfig ( string $name ) : string | null
$name string Configuration name
return string | null

nullIfBlank() protected method

protected nullIfBlank ( $value )

Property Details

$fs protected property

protected $fs

$path protected property

protected $path