class JsonPersistence extends AbstractPersistence (View source)

Dump configuration statements to a json file

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