PHP Class Piwik\Http\ControllerResolver

A controller is a PHP callable.
Show file Open project: piwik/piwik Class Usage Examples

Public Methods

Method Description
__construct ( DI\FactoryInterface $abstractFactory, WidgetsProvider $widgets )
getController ( string $module, string | null $action, array &$parameters ) : callable

Private Methods

Method Description
createCoreHomeController ( )
createPluginController ( $module, $action )
createReportController ( $module, $action, array &$parameters )
createWidgetController ( $module, $action, array &$parameters )

Method Details

__construct() public method

public __construct ( DI\FactoryInterface $abstractFactory, WidgetsProvider $widgets )
$abstractFactory DI\FactoryInterface
$widgets Piwik\Plugin\WidgetsProvider

getController() public method

public getController ( string $module, string | null $action, array &$parameters ) : callable
$module string
$action string | null
$parameters array
return callable The controller is a PHP callable.