Méthode | Description | |
---|---|---|
__construct ( Silex\Application $app, string $filename = '' ) | Creates an updater for the given file. | |
change ( string $key, string $value, boolean $makeBackup = true ) : boolean | Updates a single value with replacement for given key in yml file. | |
get ( string $key ) : boolean | array | Return a value for a key from the yml file. | |
prepareValue ( string $value ) : string | Make sure the value is escaped as a yaml value. |
Méthode | Description | |
---|---|---|
backup ( ) | Backup the YAML file. | |
save ( boolean $makebackup ) : boolean | Save our modified .yml file. | |
verify ( ) : boolean | Verify if the modified YAML is still a valid .yml file, and if we are actually allowed to write and update the current file. |
public __construct ( Silex\Application $app, string $filename = '' ) | ||
$app | Silex\Application | |
$filename | string | The file to modify |
public prepareValue ( string $value ) : string | ||
$value | string | |
Résultat | string |