PHP Class Flarum\Http\Handler\ControllerRouteHandler

ファイルを表示 Open project: flarum/core

Protected Properties

Property Type Description
$container Illuminate\Contracts\Container\Container
$controller string

Public Methods

Method Description
__construct ( Illuminate\Contracts\Container\Container $container, string $controller )
__invoke ( Psr\Http\Message\ServerRequestInterface $request, array $routeParams ) : Psr\Http\Message\ResponseInterface

Protected Methods

Method Description
resolveController ( string $class ) : Flarum\Http\Controller\ControllerInterface

Method Details

__construct() public method

public __construct ( Illuminate\Contracts\Container\Container $container, string $controller )
$container Illuminate\Contracts\Container\Container
$controller string

__invoke() public method

public __invoke ( Psr\Http\Message\ServerRequestInterface $request, array $routeParams ) : Psr\Http\Message\ResponseInterface
$request Psr\Http\Message\ServerRequestInterface
$routeParams array
return Psr\Http\Message\ResponseInterface

resolveController() protected method

protected resolveController ( string $class ) : Flarum\Http\Controller\ControllerInterface
$class string
return Flarum\Http\Controller\ControllerInterface

Property Details

$container protected_oe property

protected Container,Illuminate\Contracts\Container $container
return Illuminate\Contracts\Container\Container

$controller protected_oe property

protected string $controller
return string