public function _initCMD() { $args = JO_Shell::getArgv(); if ($args && is_array($args)) { $request = JO_Request::getInstance(); foreach ($args as $key => $data) { if ($key) { $request->setParams($key, (string) $data); } } } }
public function _initCMD() { $request = JO_Request::getInstance(); $args = JO_Shell::getArgv(); if ($args && is_array($args)) { foreach ($args as $key => $data) { if ($key) { $request->setParams($key, (string) $data); } } } // JO_Registry::set('config_cache_live',120); }