phpBB API Documentation
Class

phpbb\install\helper\file_updater\factory

class factory

File updater factory

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
public __construct(service_collection $collection)

Constructor

Parameters

service_collection $collection File updater service collection

at line 47
public register(file_updater_interface $updater)

Register updater object

Parameters

file_updater_interface $updater Updater object

at line 60
public 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