FrontControllerInterface
interface FrontControllerInterface implements SingletonInterface, OptionableInterface, ServiceContainerProviderInterface
Interface FrontControllerInterface
Methods
This must allow some shortcuts to access a service
This must allow some shortcuts to access a service
No description
This must boot the system, handle the request, send resulting response and terminate the system
No description
No description
No description
No description
No description
No description
No description
No description
Registers a new event listener
Unregisters a new event listener
Tiggers an event
Details
in
ServiceContainerProviderInterface at line 43
mixed
__call(
string $name,
array $arguments)
This must allow some shortcuts to access a service
Usage:
$obj->get('request') == $obj->getService('request')
$obj->getRequest() == $obj->getService('request')
in
ServiceContainerProviderInterface at line 57
static
mixed
__callStatic(
string $name,
array $arguments)
This must allow some shortcuts to access a service
Usage:
$obj::get('request') == $obj::getInstance()->getService('request')
$obj::getRequest() == $obj::getInstance()->getService('request')
at line 39
bool
isMode(
string $mode)
at line 47
void
run(
RequestInterface $request = null)
This must boot the system, handle the request, send resulting response and terminate the system
at line 53
ResponseInterface
handle(
RequestInterface $request = null)
at line 59
mixed
send(
ResponseInterface $response = null)
at line 66
void
redirect(
string $url,
bool $follow = false)
at line 76
void
error(
string $message,
int $status = 500,
int $code,
string $filename = __FILE__,
int $lineno = __LINE__)
at line 83
string
render(
string $view_file,
array $params = array())
at line 91
void
addRoute(
string $route,
callable $callback,
string $method = 'get')
at line 99
string
callRoute(
string $route,
array $arguments = array(),
string $method = 'get')
at line 107
string
callControllerAction(
null|string $controller = null,
null|string $action = null,
array $arguments = array())
at line 116
void
on(
string $event,
callable $callback)
Registers a new event listener
at line 125
void
off(
string $event,
callable $callback)
Unregisters a new event listener
at line 134
void
trigger(
string $event,
mixed $subject = null)
Tiggers an event