PHP Class FluxBB\Server\Server

Inheritance: implements FluxBB\Server\ServerInterface
Afficher le fichier Open project: fluxbb/core Class Usage Examples

Protected Properties

Свойство Type Description
$actions array The handler classes for all registered actions.
$factory FluxBB\Core\ActionFactory The action factory instance.

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
resolveAction ( $name ) : Action Resolve an action instance by name.

Method Details

__construct() public méthode

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

dispatch() public méthode

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

registerAction() public méthode

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

resolveAction() protected méthode

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

Property Details

$actions protected_oe property

The handler classes for all registered actions.
protected array $actions
Résultat array

$factory protected_oe property

The action factory instance.
protected ActionFactory,FluxBB\Core $factory
Résultat FluxBB\Core\ActionFactory