Abstract Class Phalcon\Application\AbstractApplication
| Namespace | Phalcon\Application | | Uses | Phalcon\Di\DiInterface, Phalcon\Di\Injectable, Phalcon\Events\EventsAwareInterface, Phalcon\Events\ManagerInterface | | Extends | Injectable | | Implements | EventsAwareInterface |
Base class for Phalcon\Cli\Console and Phalcon\Mvc\Application.
Properties¶
/**
* @var DiInterface
*/
protected container;
/**
* @var string
*/
protected defaultModule;
/**
* @var null | ManagerInterface
*/
protected eventsManager;
/**
* @var array
*/
protected modules;
Methods¶
Phalcon\AbstractApplication constructor Returns the default module name Returns the internal event manager Gets the module definition registered in the application via module name Return the modules registered in the application Register an array of modules present in the application$this->registerModules(
[
"frontend" => [
"className" => \Multiple\Frontend\Module::class,
"path" => "../apps/frontend/Module.php",
],
"backend" => [
"className" => \Multiple\Backend\Module::class,
"path" => "../apps/backend/Module.php",
],
]
);
Class Phalcon\Application\Exception
| Namespace | Phalcon\Application | | Extends | \Phalcon\Exception |
Exceptions thrown in Phalcon\Application class will use this class