메소드 |
설명 |
|
__construct ( array $settings = [] ) |
Constructor |
|
__get ( $name ) |
|
|
__isset ( $name ) |
|
|
addRoute ( string $path, array | callable $options, array $requirements = [] ) : Scalr\Api\Rest\Routing\Route |
Adds a route to routing table |
|
call ( ) |
Application wide handler |
|
delete ( string $path, array | callable $options, array $requirements = [] ) : Scalr\Api\Rest\Routing\Route |
Adds delete route |
|
error ( Callable | Exception $e = null ) |
Error handler |
|
get ( string $path, array | callable $options, array $requirements = [] ) : Scalr\Api\Rest\Routing\Route |
Adds get route |
|
getContainer ( ) : Container |
Gets API Container |
|
getDefaultSettings ( ) |
|
|
getRouteUrl ( string $route, array $params = [] ) : string |
Gets url for the specified route |
|
group ( ) |
Route Groups |
|
halt ( number $status, string $message = '' ) |
Stops application immediately |
|
handleApiVersion ( Scalr\Api\Rest\Routing\Route $route ) |
ApiVersion middleware handler |
|
handleErrors ( integer $errno, string $errstr, string $errfile, integer $errline ) : boolean |
Error handler |
|
notFound ( ) |
Not found handler |
|
options ( string $path, array | callable $options, array $requirements = [] ) : Scalr\Api\Rest\Routing\Route |
Adds options route |
|
patch ( string $path, array | callable $options, array $requirements = [] ) : Scalr\Api\Rest\Routing\Route |
Adds patch route |
|
post ( string $path, array | callable $options, array $requirements = [] ) : Scalr\Api\Rest\Routing\Route |
Adds post route |
|
put ( string $path, array | callable $options, array $requirements = [] ) : Scalr\Api\Rest\Routing\Route |
Adds put route |
|
redirect ( string $url, number $status = 302 ) |
Redirects to the specified url |
|
redirectTo ( string $route, array $params = [], number $status = 302 ) |
Redirects to the specified named route |
|
run ( ) |
Runs application |
|
stop ( ) |
Stops application |
|