extends abstract class Phalcon\DI\Injectable
implements Phalcon\Events\EventsAwareInterface, Phalcon\DI\InjectionAwareInterface
Every command-line task should extend this class that encapsulates all the task functionality A task can be used to run “tasks” such as migrations, cronjobs, unit-tests, or anything that you want. The Task class should at least have a “mainAction” method
class HelloTask extends \Phalcon\CLI\Task { //This action will be executed by default public function mainAction() { } public function findAction() { } }
Sets the dependency injector
Returns the internal dependency injector
Sets the event manager
Returns the internal event manager
Magic method __get
© 2011–2016 Phalcon Framework Team
Licensed under the Creative Commons Attribution License 3.0.
https://docs.phalconphp.com/en/2.0.0/api/Phalcon_CLI_Task.html