class YamlPersistence extends AbstractPersistence (View source)

Dump configuration statements to a yaml file

Constants

DEFAULT_DEPTH

Default depth of yaml file

This will be the default if no "depth" parameter is specified

Properties

protected Composer $composer from AbstractPersistence
protected IOInterface $io from AbstractPersistence
protected Configuration $configuration from AbstractPersistence
protected InstallerParameters $parameters from AbstractPersistence

Methods

__construct(Composer $composer, IOInterface $io, Configuration $configuration, InstallerParameters $parameters)

Persistence constructor, just to ensure all pieces are in the right place

getComposer()

No description

getIo()

No description

getConfiguration()

No description

setConfiguration(Configuration $configuration)

No description

getParameters()

No description

array
load()

Load persistent definition (if available)

void
dump(array $data)

Makes configuration persitent.

Details

__construct(Composer $composer, IOInterface $io, Configuration $configuration, InstallerParameters $parameters)

Persistence constructor, just to ensure all pieces are in the right place

Parameters

Composer $composer
IOInterface $io
Configuration $configuration
InstallerParameters $parameters

getComposer()

getConfiguration()

setConfiguration(Configuration $configuration)

Parameters

Configuration $configuration

getParameters()

array load()

Load persistent definition (if available)

Return Value

array

void dump(array $data)

Makes configuration persitent.

Parameters

array $data

Return Value

void