method getCli documentation in bbn\Mvc\Environment

function() { global $argv; if ($this->isCli()) { if ($this->isCli() === 'direct') { array_shift($argv); } $this->_post = []; if (isset($argv[1])) { $this->setParams($argv[1]); if (isset($argv[2])) { if (!isset($argv[3]) && \bbn\Str::isJson($argv[2])) { $this->_post = json_decode($argv[2], 1); } else { for ($i = 2, $iMax = \count($argv); $i < $iMax; $i++) { $this->_post[] = $argv[$i]; } } } } return $this->_post; } return null; }

BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.