PHP Class App\Services\Config\DotenvWriter

Inheritance: implements App\Services\Config\ConfigWriterInterface
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 )
setConfig ( string $name, string $value ) : mixed Set configuration to a .env file.

Method Details

__construct() public method

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

setConfig() public method

Set configuration to a .env file.
public setConfig ( string $name, string $value ) : mixed
$name string Configuration name
$value string Configuration value
return mixed

Property Details

$fs protected property

protected $fs

$path protected property

protected $path