extends abstract class Phalcon\Application
implements Phalcon\Di\InjectionAwareInterface, Phalcon\Events\EventsAwareInterface
This component allows to create CLI applications using Phalcon
Merge modules with the existing ones
$application->addModules( [ "admin" => [ "className" => "Multiple\\Admin\\Module", "path" => "../apps/admin/Module.php", ], ] );
Handle the whole command-line tasks
Set an specific argument
Phalcon\Application
Sets the events manager
Returns the internal event manager
Register an array of modules present in the application
$this->registerModules( [ "frontend" => [ "className" => "Multiple\\Frontend\\Module", "path" => "../apps/frontend/Module.php", ], "backend" => [ "className" => "Multiple\\Backend\\Module", "path" => "../apps/backend/Module.php", ], ] );
Return the modules registered in the application
Gets the module definition registered in the application via module name
Sets the module name to be used if the router doesn’t return a valid module
Returns the default module name
Sets the dependency injector
Returns the internal dependency injector
Magic method __get
© 2011–2017 Phalcon Framework Team
Licensed under the Creative Commons Attribution License 3.0.
https://docs.phalconphp.com/en/latest/api/Phalcon_Cli_Console.html