ConsoleCommand framework

This commit is contained in:
yuri
2019-02-08 16:44:54 +02:00
parent 790a206e0a
commit 983988c9e1
15 changed files with 294 additions and 46 deletions

View File

@@ -27,11 +27,7 @@
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
$sapiName = php_sapi_name();
if (substr($sapiName, 0, 3) != 'cli') {
die("Rebuild can be run only via CLI");
}
if (substr(php_sapi_name(), 0, 3) != 'cli') die('ClearCache can be run only via CLI.');
include "bootstrap.php";