aoolication runners

This commit is contained in:
Yuri Kuznetsov
2020-07-12 19:11:53 +03:00
parent 269f2b4850
commit 1b61205281
19 changed files with 574 additions and 118 deletions
+1 -4
View File
@@ -27,9 +27,6 @@
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
if (substr(php_sapi_name(), 0, 3) != 'cli') die('Cron can be run only via CLI.');
include "bootstrap.php";
$app = new \Espo\Core\Application();
$app->runCron();
(new \Espo\Core\Application())->run('cron');