Application
class Application (View source)
Methods
Get container
Check if it is running on php cli
Launcher of the application
Allows you to enable writing the X-Powered-By header in the answer of the inquiry.
Make the REST API base on route and resource controller.
Abort application
Build dependence
__invoke
Send the application response
Delegate method calls to the router
Details
Capsule
getContainer()
Get container
Router
getRouter()
Get router
bool
isRunningOnCli()
Check if it is running on php cli
bool
run()
Launcher of the application
void
disablePoweredByMention()
Allows you to enable writing the X-Powered-By header in the answer of the inquiry.
Application
rest(string $url, string|array $controller_name, array $where = [])
Make the REST API base on route and resource controller.
static Application
make(Request $request, Response $response)
Build the application
void
abort(int $code = 500, string $message = '', array $headers = [])
Abort application
mixed
container(string|null $name = null, callable|null $callable = null)
Build dependence
void
bind(Loader $config)
Configuration Association
mixed
__invoke(array ...$params)
__invoke
This point method on the container system
void
send()
Send the application response
mixed
__call(string $method, array $args)
Delegate method calls to the router