Method |
Description |
|
__call ( $method, $parameters ) |
* (non-phpdoc) |
|
__construct ( $classLoader = null ) |
Constructor |
|
classLoader ( ) : Router |
Returns the class loader associateds with the application |
|
config ( $key ) |
Looks up a registry key value, requires a 'config' object to be
in the registry |
|
controller ( ) |
Returns an application's central controller for executing requests |
|
dateTime ( ) : object |
Returns the current {@link DateTime} instance in the registry, or creates a new one |
|
errorContext ( ) |
Gets the error context for the application |
|
errorHandler ( ) : object |
Gets the error handler for the application |
|
errorProxy ( ) |
Returns the \Ergo\Error\ErrorProxy for the application |
|
isConsole ( ) : boolean |
Determines if the application is running in console mode |
|
loggerFactory ( ) |
Gets the logger factory used to create loggers |
|
loggerFor ( $class ) |
Looks up a logger for a class or filename from the logger factory |
|
lookup ( $key, $closure = null ) |
Looks up a key in the application's core registry |
|
middleware ( $className ) |
Adds a middleware to the end of the middleware stack |
|
onStart ( ) |
Template method, called when the application starts |
|
onStop ( ) |
Template method, called when the application stops |
|
plug ( Ergo\Plugin $plugin ) |
Adds a {@link \Ergo\Plugin} to the application |
|
plugins ( ) |
Returns the plugins plugged into the application |
|
rand ( $min, $max ) : integer |
Returns the current random number in the registry, or generates a new one |
|
register ( $key, $object ) |
A shortcut for registering an object in the registry |
|
registry ( ) |
Gets the application's core registry |
|
request ( ) |
Returns a request object for the current http request |
|
requestFactory ( ) |
Creates or sets the logger factory used to create loggers |
|
reset ( ) |
Resets all internal state |
|
router ( ) : Router |
Returns a request router |
|
run ( $server = null, $stream = null ) : void |
Processes an HTTP request, copies response to STDOUT |
|
setDateTime ( $dateTime ) |
Sets a {@link DateTime} instance in the registry, for subsequent {@link dateTime()}
and {@link time()} calls |
|
setErrorContext ( $context ) |
|
|
setErrorHandler ( $errorHandler ) |
Sets the error handler for the application |
|
setLoggerFactory ( Ergo\Logging\LoggerFactory $factory ) |
Creates or sets the logger factory used to create loggers |
|
setRand ( $rand ) |
|
|
setRequestFactory ( ergo\Factory $factory ) |
Creates or sets the logger factory used to create loggers |
|
start ( ) |
* (non-phpdoc) |
|
stop ( ) |
* (non-phpdoc) |
|
time ( ) : integer |
Returns the current timestamp of the instance returned by {@link dateTime()} |
|