public function __construct($config) { parent::__construct($config); $this->args = array_slice($_SERVER['argv'], 1); $this->type = 'console'; if (!isset($this->args[0])) { throw new NeechyConsoleError('invalid console request: no action (task or handler) provided'); } else { $this->action = $this->args[0]; $this->params = array_slice($this->args, 1); } }
public function __construct($config) { parent::__construct($config); }