PHP Class FluxBB\Web\ControllerFactory

Show file Open project: fluxbb/core Class Usage Examples

Protected Properties

Property Type Description
$container Illuminate\Contracts\Container\Container The container instance.

Public Methods

Method Description
__construct ( Illuminate\Contracts\Container\Container $container ) Create a factory instance.
make ( string $class ) : Controller Create and bootstrap the given controller class.

Protected Methods

Method Description
makeServer ( ) : FluxBB\Server\ServerInterface Instantiate the FluxBB server.
makeSession ( ) : Illuminate\Session\Store Instantiate the session driver.
makeUrlGenerator ( ) : FluxBB\Web\UrlGeneratorInterface Instantiate the URL generator.
makeView ( ) : FluxBB\View\ViewInterface Instantiate the view environment.

Method Details

__construct() public method

Create a factory instance.
public __construct ( Illuminate\Contracts\Container\Container $container )
$container Illuminate\Contracts\Container\Container

make() public method

Create and bootstrap the given controller class.
public make ( string $class ) : Controller
$class string
return Controller

makeServer() protected method

Instantiate the FluxBB server.
protected makeServer ( ) : FluxBB\Server\ServerInterface
return FluxBB\Server\ServerInterface

makeSession() protected method

Instantiate the session driver.
protected makeSession ( ) : Illuminate\Session\Store
return Illuminate\Session\Store

makeUrlGenerator() protected method

Instantiate the URL generator.
protected makeUrlGenerator ( ) : FluxBB\Web\UrlGeneratorInterface
return FluxBB\Web\UrlGeneratorInterface

makeView() protected method

Instantiate the view environment.
protected makeView ( ) : FluxBB\View\ViewInterface
return FluxBB\View\ViewInterface

Property Details

$container protected property

The container instance.
protected Container,Illuminate\Contracts\Container $container
return Illuminate\Contracts\Container\Container