PHP Class FluxBB\Web\Dispatcher

Inheritance: implements Symfony\Component\HttpKernel\HttpKernelInterface
Mostra file Open project: fluxbb/core Class Usage Examples

Protected Properties

Property Type Description
$app Illuminate\Contracts\Foundation\Application;
$factory ControllerFactory
$router Router

Public Methods

Method Description
__construct ( Illuminate\Contracts\Foundation\Application $app, Router $router, ControllerFactory $factory ) Create a dispatcher instance.
handle ( Request $request, $type = self::MASTER_REQUEST, $catch = true )

Protected Methods

Method Description
callController ( string $callable, Request $request ) : Response Instantiate the controller and run the given action.
getCallable ( Request $request ) : string Get the class of the controller to be executed.

Method Details

__construct() public method

Create a dispatcher instance.
public __construct ( Illuminate\Contracts\Foundation\Application $app, Router $router, ControllerFactory $factory )
$app Illuminate\Contracts\Foundation\Application
$router Router
$factory ControllerFactory

callController() protected method

Instantiate the controller and run the given action.
protected callController ( string $callable, Request $request ) : Response
$callable string
$request Symfony\Component\HttpFoundation\Request
return Symfony\Component\HttpFoundation\Response

getCallable() protected method

Get the class of the controller to be executed.
protected getCallable ( Request $request ) : string
$request Symfony\Component\HttpFoundation\Request
return string

handle() public method

public handle ( Request $request, $type = self::MASTER_REQUEST, $catch = true )
$request Symfony\Component\HttpFoundation\Request

Property Details

$app protected_oe property

protected Application;,Illuminate\Contracts\Foundation $app
return Illuminate\Contracts\Foundation\Application;

$factory protected_oe property

protected ControllerFactory,FluxBB\Web $factory
return ControllerFactory

$router protected_oe property

protected Router,FluxBB\Web $router
return Router