1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
bitrix.php
См. документацию.
1<?php
8
16
17// include bitrix
18require_once 'bootstrap.php';
19
20// initialize symfony
21use Symfony\Component\Console\Application;
22
23$application = new Application();
24
25// register commands
27foreach ($modules as $moduleId => $_)
28{
30 if (isset($config['commands']) && is_array($config['commands']))
31 {
32 if (\Bitrix\Main\Loader::includeModule($moduleId))
33 {
34 foreach ($config['commands'] as $commandClass)
35 {
36 if (is_a($commandClass, \Symfony\Component\Console\Command\Command::class, true))
37 {
38 $application->add(new $commandClass());
39 }
40 }
41 }
42 }
43}
44
45// run console
46$application->run();
static getInstance($moduleId=null)
Определения configuration.php:45
static getInstalledModules()
Определения modulemanager.php:9
$moduleId
$modules
Определения bitrix.php:26
$application
Определения bitrix.php:23
$config
Определения quickway.php:69