PHP Class FluxBB\Core\ActionFactory

Datei anzeigen Open project: fluxbb/core Class Usage Examples

Protected Properties

Property Type Description
$container Illuminate\Contracts\Container\Container An instance of the IoC container.

Public Methods

Method Description
__construct ( Illuminate\Contracts\Container\Container $container ) Create a new action factory instance.
make ( string $class ) : Action Create a new action instance.

Protected Methods

Method Description
resolve ( string $class ) : Action Resolve an action from the container.

Method Details

__construct() public method

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

make() public method

Create a new action instance.
public make ( string $class ) : Action
$class string
return Action

resolve() protected method

Resolve an action from the container.
protected resolve ( string $class ) : Action
$class string
return Action

Property Details

$container protected_oe property

An instance of the IoC container.
protected Container,Illuminate\Contracts\Container $container
return Illuminate\Contracts\Container\Container