Action
class Action (View source)
Constants
INJECTION_EXCEPTION_TYPE |
|
Methods
__construct(array $namespaces, array $middlewares)
Action constructor
static Action
getInstance()
Retrieves Action instance
pushMiddleware(array|callable $middlewares, bool $end = false)
Add a middleware to the list
pushNamespace(array|string $namespace)
Adding a namespace to the list
mixed
call(callable|string|array $actions, mixed $param = null)
Callback launcher
mixed
execute(array|callable $arr, array|callable $arg)
Successively launches a function list.
array
controller(string $controller_name)
Load the controllers defined as string
array
injector(string $classname, string $method = null)
Make any class injection
array
injectorForClosure(callable $closure)
Injection for closure
Details
__construct(array $namespaces, array $middlewares)
Action constructor
static Action
configure(array $namespaces, array $middlewares)
Action configuration
static Action
getInstance()
Retrieves Action instance
pushMiddleware(array|callable $middlewares, bool $end = false)
Add a middleware to the list
pushNamespace(array|string $namespace)
Adding a namespace to the list
mixed
call(callable|string|array $actions, mixed $param = null)
Callback launcher
mixed
execute(array|callable $arr, array|callable $arg)
Successively launches a function list.
array
controller(string $controller_name)
Load the controllers defined as string
array
closure(Closure $closure)
Load the closure define as action
array
injector(string $classname, string $method = null)
Make any class injection
array
injectorForClosure(callable $closure)
Injection for closure