PHP Class App\Services\Config\DotenvReader

Inheritance: implements App\Services\Config\ConfigReaderInterface
Afficher le fichier Open project: ngmy/webloyer Class Usage Examples

Protected Properties

Свойство Type Description
$fs
$path

Méthodes publiques

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

Méthodes protégées

Méthode Description
nullIfBlank ( $value )

Method Details

__construct() public méthode

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

getConfig() public méthode

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

nullIfBlank() protected méthode

protected nullIfBlank ( $value )

Property Details

$fs protected_oe property

protected $fs

$path protected_oe property

protected $path