PHP Class FluxBB\Server\Server

Inheritance: implements FluxBB\Server\ServerInterface
Datei anzeigen Open project: fluxbb/core Class Usage Examples

Protected Properties

Property Type Description
$actions array The handler classes for all registered actions.
$factory FluxBB\Core\ActionFactory The action factory instance.

Public Methods

Method Description
__construct ( ActionFactory $factory ) Create a new server instance.
dispatch ( Request $request ) : Response Resolve the request and return a response.
registerAction ( string $name, string $actionClass ) Register a named action and its handler class.

Protected Methods

Method Description
resolveAction ( $name ) : Action Resolve an action instance by name.

Method Details

__construct() public method

Create a new server instance.
public __construct ( ActionFactory $factory )
$factory FluxBB\Core\ActionFactory

dispatch() public method

Resolve the request and return a response.
public dispatch ( Request $request ) : Response
$request Request
return Response

registerAction() public method

Register a named action and its handler class.
public registerAction ( string $name, string $actionClass )
$name string
$actionClass string

resolveAction() protected method

Resolve an action instance by name.
protected resolveAction ( $name ) : Action
$name
return FluxBB\Core\Action

Property Details

$actions protected_oe property

The handler classes for all registered actions.
protected array $actions
return array

$factory protected_oe property

The action factory instance.
protected ActionFactory,FluxBB\Core $factory
return FluxBB\Core\ActionFactory