Main function to detect if we're running in a CLI environment and we're admin
protected isCliAdmin ( ) : array | ||
return | array | isCLI and isAdmin. It's not an associative array, so we can use list. |
/** * Sync the isCli / isAdmin with the real values */ public function resetIsCliAdmin() { list(self::$isCli, self::$isAdmin) = parent::isCliAdmin(); }