Maker
class Winter\Storm\Foundation\Maker
Properties
protected $app : Application
protected
$bindings
:
array
= []
Methods
public __construct (Winter\Storm\Foundation\Application $app) : void
Maker constructor.
Parameters
Property | Type | Description |
---|---|---|
$app | Winter\Storm\Foundation\Application |
Winter\Storm\Foundation\Application
|
Returns
void
public bind ($abstract, Closure $concrete)
Parameters
Property | Type | Description |
---|---|---|
$abstract | mixed |
mixed
|
$concrete | Closure |
Closure
|
Returns
mixed
public
make ($abstract, array $parameters = []
)
Parameters
Property | Type | Description |
---|---|---|
$abstract | mixed |
mixed
|
$parameters | array |
array
|
Returns
mixed
protected build ($concrete, $parameters)
Parameters
Property | Type | Description |
---|---|---|
$concrete | mixed |
mixed
|
$parameters | mixed |
mixed
|
Returns
mixed
protected getBinding ($abstract)
Parameters
Property | Type | Description |
---|---|---|
$abstract | mixed |
mixed
|
Returns
mixed
protected
getDependencies (array $parameters, array $primitives = []
)
: array
Resolve all of the dependencies from the ReflectionParameters.
Parameters
Property | Type | Description |
---|---|---|
$parameters | array |
array
|
$primitives | array |
array
|
Returns
array
protected getFromContainer (string $abstract) : mixed
Parameters
Property | Type | Description |
---|---|---|
$abstract | string |
string
|
Returns
mixed
protected isBound ($abstract) : bool
Parameters
Property | Type | Description |
---|---|---|
$abstract | mixed |
mixed
|
Returns
bool
protected keyParametersByArgument (array $dependencies, array $parameters) : array
If extra parameters are passed by numeric ID, rekey them by argument name.
Parameters
Property | Type | Description |
---|---|---|
$dependencies | array |
array
|
$parameters | array |
array
|
Returns
array
protected resolveClass (ReflectionParameter $parameter) : mixed
Parameters
Property | Type | Description |
---|---|---|
$parameter | ReflectionParameter |
ReflectionParameter
|
Returns
mixed
protected resolvePrimitive (ReflectionParameter $parameter) : mixed | void
Parameters
Property | Type | Description |
---|---|---|
$parameter | ReflectionParameter |
ReflectionParameter
|
Returns
mixed | void
protected unresolvablePrimitive (ReflectionParameter $parameter)
Parameters
Property | Type | Description |
---|---|---|
$parameter | ReflectionParameter |
ReflectionParameter
|
Returns
mixed
←
Winter\Storm\Foundation\Http\Middleware\CheckForTrustedProxies
Winter\Storm\Foundation\ProviderRepository
→
Copyright © 2023 Winter CMS