This commit is contained in:
Yuri Kuznetsov
2023-05-02 18:08:05 +03:00
parent 9a6cfd4228
commit 9221cbc361
7 changed files with 18 additions and 32 deletions
+4 -6
View File
@@ -31,17 +31,15 @@
* @deprecated Use `php command.php extension --file="path/to/extension/package.zip"`.
*/
if (substr(php_sapi_name(), 0, 3) !== 'cli') {
if (!str_starts_with(php_sapi_name(), 'cli')) {
exit;
}
include "bootstrap.php";
use Espo\Core\{
Application,
ApplicationRunners\Rebuild,
Upgrades\ExtensionManager,
};
use Espo\Core\Application;
use Espo\Core\ApplicationRunners\Rebuild;
use Espo\Core\Upgrades\ExtensionManager;
$arg = isset($_SERVER['argv'][1]) ? trim($_SERVER['argv'][1]) : '';