phpBB API Documentation
Class

phpbb\report\handler_factory

class handler_factory

Methods

__construct(ContainerInterface $container)

Constructor

report_handler_interface get_instance(string $type)

Return a new instance of an appropriate report handler

Details

at line 30
public __construct(ContainerInterface $container)

Constructor

Parameters

ContainerInterface $container

at line 42
public report_handler_interface get_instance(string $type)

Return a new instance of an appropriate report handler

Parameters

string $type

Return Value

report_handler_interface

Exceptions

factory_invalid_argument_exception if $type is not valid