PHP Class FluxBB\Web\Dispatcher

Inheritance: implements Symfony\Component\HttpKernel\HttpKernelInterface
Afficher le fichier Open project: fluxbb/core Class Usage Examples

Protected Properties

Свойство Type Description
$app Illuminate\Contracts\Foundation\Application;
$factory ControllerFactory
$router Router

Méthodes publiques

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

Méthodes protégées

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

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 méthode

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

getCallable() protected méthode

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

handle() public méthode

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
Résultat Illuminate\Contracts\Foundation\Application;

$factory protected_oe property

protected ControllerFactory,FluxBB\Web $factory
Résultat ControllerFactory

$router protected_oe property

protected Router,FluxBB\Web $router
Résultat Router