PHP Class Puli\Manager\Config\ConfigFileManagerImpl

Use this class to make persistent changes to the global config.json. Whenever you call methods in this class, the changes will be written to disk.
Since: 1.0
Author: Bernhard Schussek ([email protected])
Inheritance: extends Puli\Manager\Config\AbstractConfigManager, implements Puli\Manager\Api\Config\ConfigFileManager
Show file Open project: puli/manager Class Usage Examples

Public Methods

Method Description
__construct ( Puli\Manager\Api\Context\Context $context, JsonStorage $jsonStorage ) Creates the configuration manager.
getConfig ( )
getConfigFile ( )
getContext ( )

Protected Methods

Method Description
saveConfigFile ( )

Method Details

__construct() public method

Creates the configuration manager.
public __construct ( Puli\Manager\Api\Context\Context $context, JsonStorage $jsonStorage )
$context Puli\Manager\Api\Context\Context The global context.
$jsonStorage Puli\Manager\Json\JsonStorage The configuration file storage.

getConfig() public method

public getConfig ( )

getConfigFile() public method

public getConfigFile ( )

getContext() public method

public getContext ( )

saveConfigFile() protected method

protected saveConfigFile ( )