FrontController
class FrontController implements FrontControllerInterface
The default FrontController
Traits
Patterns\Traits\OptionableTrait
Patterns\Traits\SingletonTrait
ServiceContainerProviderTrait
Methods
mixed
__call(
string $name,
array $arguments)
This must allow some shortcuts to access a service
static
mixed
__callStatic(
string $name,
array $arguments)
This must allow some shortcuts to access a service
__construct(
array $options = array())
No description
$this
boot()
No description
bool
isMode(
string $mode)
No description
$this
setOptions(
array $options)
No description
void
run(
RequestInterface $request = null)
No description
handle(
RequestInterface $request = null)
No description
mixed
send(
ResponseInterface $response = null)
No description
void
addRoute(
string $route,
callable $callback,
string $method = 'get')
No description
string
render(
string $view_file,
array $params = array(),
string $type = 'global')
No description
string
callRoute(
string $route,
array $arguments = array(),
string $method = 'get')
No description
string
callControllerAction(
null|string $controller = null,
null|string $action = null,
array $arguments = array())
No description
void
error(
string $message,
int $status = 500,
int $code,
string $filename = __FILE__,
int $lineno = __LINE__)
No description
void
redirect(
string $url,
bool $follow = false)
No description
void
on(
string $event,
callable $callback)
No description
void
off(
string $event,
callable $callback)
No description
void
trigger(
string $event,
mixed $subject = null)
No description
Details
in
ServiceContainerProviderTrait at line 45
mixed
__call(
string $name,
array $arguments)
This must allow some shortcuts to access a service
in
ServiceContainerProviderTrait at line 57
static
mixed
__callStatic(
string $name,
array $arguments)
This must allow some shortcuts to access a service