PHP Interface Kraken\Container\ContainerReaderInterface

Mostrar archivo Open project: kraken-php/framework

Public Methods

Method Description
call ( callable $callable, mixed[] $args = [] ) : mixed Call given method using Container autowiring.
exists ( string $aliasOrClass ) : boolean Check if $aliasOrClass is resolvable by Container.
make ( string $aliasOrClass, mixed[] $args = [] ) : mixed Create object of class $aliasOrClass.

Method Details

call() public method

Call given method using Container autowiring.
public call ( callable $callable, mixed[] $args = [] ) : mixed
$callable callable
$args mixed[]
return mixed

exists() public method

Check if $aliasOrClass is resolvable by Container.
public exists ( string $aliasOrClass ) : boolean
$aliasOrClass string
return boolean

make() public method

Create object of class $aliasOrClass.
public make ( string $aliasOrClass, mixed[] $args = [] ) : mixed
$aliasOrClass string
$args mixed[]
return mixed