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
+2 -7
View File
@@ -1,4 +1,4 @@
<?php
<?php
/************************************************************************
* This file is part of EspoCRM.
*
@@ -27,14 +27,9 @@
* 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('Rebuild can be run only via CLI.');
include "bootstrap.php";
$app = new \Espo\Core\Application();
$app->runRebuild();