$config
$config : mixed
Application config
Application class
$router : \Pop\Router\Router
Application router
$services : \Pop\Service\Locator
Service locator
$events : \Pop\Event\Manager
Event manager
$modules : \Pop\Module\Manager
Module manager
__construct() : \Pop\Application
Constructor
Instantiate an application object
Optional parameters are a service locator instance, a router instance, an event manager instance or a configuration object or array
bootstrap(mixed  $autoloader = null) : \Pop\Application
                Bootstrap the application
| mixed | $autoloader | 
mergeConfig(mixed $config, boolean $replace = false) : \Pop\Application
Merge new or altered config values with the existing config values
| mixed | $config | |
| boolean | $replace | 
init() : \Pop\Application
Initialize the application
router() : \Pop\Router\Router
Access the application router
services() : \Pop\Service\Locator
Get the service locator
events() : \Pop\Event\Manager
Get the event manager
modules() : \Pop\Module\Manager
Access all application module configs
loadConfig(mixed  $config) : \Pop\Application
                Load application config
| mixed | $config | 
loadRouter(\Pop\Router\Router  $router) : \Pop\Application
                Load a router
| \Pop\Router\Router | $router | 
loadServices(\Pop\Service\Locator  $services) : \Pop\Application
                Load a service locator
| \Pop\Service\Locator | $services | 
loadEvents(\Pop\Event\Manager  $events) : \Pop\Application
                Load an event manager
| \Pop\Event\Manager | $events | 
loadModules(\Pop\Module\Manager  $modules) : \Pop\Application
                Load a module manager
| \Pop\Module\Manager | $modules | 
registerAutoloader(mixed  $autoloader) : \Pop\Application
                Register the autoloader object
| mixed | $autoloader | 
module(string  $name) : \Pop\Module\ModuleInterface
                Access a module object
| string | $name | 
register(string $name, mixed $module) : \Pop\Application
Register a module with the application object
| string | $name | |
| mixed | $module | 
unregister(string  $name) : \Pop\Application
                Unregister a module object
| string | $name | 
addRoute(string $route, mixed $controller) : \Pop\Application
Add a route
| string | $route | |
| mixed | $controller | 
addRoutes(array  $routes) : \Pop\Application
                Add routes
| array | $routes | 
setService(string $name, mixed $service) : \Pop\Application
Set a service
| string | $name | |
| mixed | $service | 
removeService(string  $name) : \Pop\Application
                Remove a service
| string | $name | 
on(string $name, mixed $action, integer $priority) : \Pop\Application
Attach an event. Default hook-points are:
app.init app.route.pre app.route.post app.dispatch.pre app.dispatch.post app.error
| string | $name | |
| mixed | $action | |
| integer | $priority | 
off(string $name, mixed $action) : \Pop\Application
Detach an event. Default hook-points are:
app.init app.route.pre app.route.post app.dispatch.pre app.dispatch.post app.error
| string | $name | |
| mixed | $action | 
trigger(string $name, array $args = array()) : \Pop\Application
Trigger an event
| string | $name | |
| array | $args | 
__set(string $name, mixed $value) : \Pop\Application
Set a value in the array
| string | $name | |
| mixed | $value | 
__unset(string  $name) : \Pop\Application
                Unset a value from the array
| string | $name | 
offsetSet(string $offset, mixed $value) : \Pop\Application
Set a value in the array
| string | $offset | |
| mixed | $value | 
offsetUnset(string  $offset) : \Pop\Application
                Unset a value from the array
| string | $offset |