Phalcon application
NOTE
All classes are prefixed with 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 ManagerInterface|null
*/
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",
],
]
);
Application\Exception¶
-
Namespace
Phalcon\Application
-
Uses
-
Extends
\Exception
-
Implements
Exceptions thrown in Phalcon\Application class will use this class