コード例 #1
0
 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);
     }
 }
コード例 #2
0
ファイル: web.php プロジェクト: klenwell/neechy-app-engine
 public function __construct($config)
 {
     parent::__construct($config);
 }