Method | Description | |
---|---|---|
__construct ( Puli\Manager\Api\Storage\Storage $storage, |
Creates a new storage. | |
loadConfigFile ( string $path, Puli\Manager\Api\Config\Config $baseConfig = null ) : Puli\Manager\Api\Config\ConfigFile | Loads a configuration file from a path. | |
loadModuleFile ( string $path ) : |
Loads a module file from a file path. | |
loadRootModuleFile ( string $path, Puli\Manager\Api\Config\Config $baseConfig ) : |
Loads a root module file from a file path. | |
saveConfigFile ( Puli\Manager\Api\Config\ConfigFile $configFile ) | Saves a configuration file. | |
saveModuleFile ( |
Saves a module file. | |
saveRootModuleFile ( |
Saves a root module file. |
Method | Description | |
---|---|---|
decode ( $json, $path ) | ||
encode ( stdClass $jsonData, $path ) | ||
loadFile ( $path, $className, array $options = [] ) | ||
saveFile ( $file, $path, array $options = [] ) |
public __construct ( Puli\Manager\Api\Storage\Storage $storage, |
||
$storage | Puli\Manager\Api\Storage\Storage | The file storage. |
$converterProvider | The provider for the JSON converters. | |
$jsonEncoder | The JSON encoder. | |
$jsonDecoder | The JSON decoder. | |
$factoryManager | Puli\Manager\Api\Factory\FactoryManager | The manager used to regenerate the factory class after saving a file. |
public loadConfigFile ( string $path, Puli\Manager\Api\Config\Config $baseConfig = null ) : Puli\Manager\Api\Config\ConfigFile | ||
$path | string | The path to the configuration file. |
$baseConfig | Puli\Manager\Api\Config\Config | The configuration that the loaded configuration will inherit its values from. |
return | Puli\Manager\Api\Config\ConfigFile | The loaded configuration file. |
public loadModuleFile ( string $path ) : |
||
$path | string | The path to the module file. |
return | The loaded module file. |
public loadRootModuleFile ( string $path, Puli\Manager\Api\Config\Config $baseConfig ) : |
||
$path | string | The path to the module configuration file. |
$baseConfig | Puli\Manager\Api\Config\Config | The configuration that the module will inherit its configuration values from. |
return | The loaded module file. |
public saveConfigFile ( Puli\Manager\Api\Config\ConfigFile $configFile ) | ||
$configFile | Puli\Manager\Api\Config\ConfigFile | The configuration file to save. |
public saveModuleFile ( |
||
$moduleFile | The module file to save. |
public saveRootModuleFile ( |
||
$moduleFile | The module file to save. |