method isCli documentation in bbn\Mvc\Environment

Returns true if called from CLI/Cron, false otherwise

function() { if (!isset($this->_cli)) { $this->_cli = X::isCli(); if ($this->_cli) { $opt = getopt('', ['cli']); if (isset($opt['cli'])) { $this->_cli = 'direct'; } } } return $this->_cli; }

Returns true if called from CLI/Cron, false otherwise 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.