class factory

File updater factory

Properties

protected array $file_updaters

Methods

__construct(service_collection $collection)

Constructor

register(file_updater_interface $updater)

Register updater object

get(string $name)

Returns file updater object

Details

at line 34
__construct(service_collection $collection)

Constructor

Parameters

service_collection $collection

File updater service collection

at line 47
register(file_updater_interface $updater)

Register updater object

Parameters

file_updater_interface $updater

Updater object

at line 60
get(string $name)

Returns file updater object

Parameters

string $name

Name of the updater method

Exceptions

file_updater_failure_exception

When the specified file updater does not exist