DotenvEditor extends DotenvEditor
DotenvEditor.
Implementation of Jackiedo DotenvEditor for use in UserFrosting
Tags
Table of Contents
__construct() | Create a new DotenvEditor instance. | mixed |
---|---|---|
load() | Load file for working. | DotenvEditor |
Methods
__construct()
Create a new DotenvEditor instance.
public
__construct(
[ $backupPath :
string
= '' ]
[, $autoBackup :
bool
= true ]
)
: mixed
Parameters
- $backupPath : string = ''
- $autoBackup : bool = true
Tags
Return values
mixedload()
Load file for working.
public
load(
[ $filePath :
string
= null ]
[, $restoreIfNotFound :
bool
= false ]
[, $restorePath :
string|null
= null ]
)
: DotenvEditor
Parameters
- $filePath : string = null
The file path
- $restoreIfNotFound : bool = false
Restore this file from other file if it's not found
- $restorePath : string|null = null
The file path you want to restore from