|
24 | 24 | $ggrachDirCss = "/bitrix/css/ggrachdev.debugbar"; |
25 | 25 | } else { |
26 | 26 | // Корневая папка модуля |
27 | | - $ggrachDebuggerRootPath = str_replace($_SERVER['DOCUMENT_ROOT'], '', __DIR__ . '/../..'); |
| 27 | + $ggrachDebuggerRootPath = str_replace($_SERVER['DOCUMENT_ROOT'], '', \realpath(__DIR__ . '/../..')); |
28 | 28 |
|
29 | 29 | // Папка для логов по умолчанию |
30 | 30 | $ggrachPathLogFolder = \realpath('.' . $ggrachDebuggerRootPath . '/logs'); |
|
39 | 39 | $ggrachDirCss = $ggrachDebuggerRootPath . '/module/ggrachdev.debugbar/install/css'; |
40 | 40 | } |
41 | 41 |
|
42 | | -Bitrix\Main\Loader::registerAutoLoadClasses('ggrachdev.debugbar', [ |
| 42 | +Bitrix\Main\Loader::registerAutoLoadClasses((GGRACH_DEBUG_BAR_TYPE_INCLUDE === 'module' ? 'ggrachdev.debugbar' : null), [ |
43 | 43 | // BitrixDebugger |
44 | | - "\GGrach\BitrixDebugger\Debugger\Debugger" => $ggrachRootpathClassAutoload . "/BitrixDebugger/Debugger/Debugger.php", |
45 | | - "\GGrach\BitrixDebugger\Debugger\NoticeDebugger" => $ggrachRootpathClassAutoload . "/BitrixDebugger/Debugger/NoticeDebugger.php", |
46 | | - "\GGrach\BitrixDebugger\Debugger\LogFileDebugger" => $ggrachRootpathClassAutoload . "/BitrixDebugger/Debugger/LogFileDebugger.php", |
47 | | - "\GGrach\BitrixDebugger\Debugger\ConfigurationDebugger" => $ggrachRootpathClassAutoload . "/BitrixDebugger/Debugger/ConfigurationDebugger.php", |
48 | | - "\GGrach\BitrixDebugger\Debugger\FilterDebugger" => $ggrachRootpathClassAutoload . "/BitrixDebugger/Debugger/FilterDebugger.php", |
49 | | - "\GGrach\BitrixDebugger\Contract\ShowModableContract" => $ggrachRootpathClassAutoload . "/BitrixDebugger/Contract/ShowModableContract.php", |
50 | | - "\GGrach\BitrixDebugger\Configurator\DebuggerConfigurator" => $ggrachRootpathClassAutoload . "/BitrixDebugger/Configurator/DebuggerConfigurator.php", |
51 | | - "\GGrach\BitrixDebugger\Configurator\DebugBarConfigurator" => $ggrachRootpathClassAutoload . "/BitrixDebugger/Configurator/DebugBarConfigurator.php", |
52 | | - "\GGrach\BitrixDebugger\Cache\RuntimeCache" => $ggrachRootpathClassAutoload . "/BitrixDebugger/Cache/RuntimeCache.php", |
53 | | - "\GGrach\BitrixDebugger\Validator\ShowModeDebuggerValidator" => $ggrachRootpathClassAutoload . "/BitrixDebugger/Validator/ShowModeDebuggerValidator.php", |
54 | | - "\GGrach\BitrixDebugger\Representer\DebugBarRepresenter" => $ggrachRootpathClassAutoload . "/BitrixDebugger/Representer/DebugBarRepresenter.php", |
55 | | - "\GGrach\BitrixDebugger\Events\OnEndBufferContent" => $ggrachRootpathClassAutoload . "/BitrixDebugger/Events/OnEndBufferContent.php", |
| 44 | + "\\GGrach\\BitrixDebugger\\Debugger\\Debugger" => $ggrachRootpathClassAutoload . "/BitrixDebugger/Debugger/Debugger.php", |
| 45 | + "\\GGrach\\BitrixDebugger\\Debugger\\NoticeDebugger" => $ggrachRootpathClassAutoload . "/BitrixDebugger/Debugger/NoticeDebugger.php", |
| 46 | + "\\GGrach\\BitrixDebugger\\Debugger\\LogFileDebugger" => $ggrachRootpathClassAutoload . "/BitrixDebugger/Debugger/LogFileDebugger.php", |
| 47 | + "\\GGrach\\BitrixDebugger\\Debugger\\ConfigurationDebugger" => $ggrachRootpathClassAutoload . "/BitrixDebugger/Debugger/ConfigurationDebugger.php", |
| 48 | + "\\GGrach\\BitrixDebugger\\Debugger\\FilterDebugger" => $ggrachRootpathClassAutoload . "/BitrixDebugger/Debugger/FilterDebugger.php", |
| 49 | + "\\GGrach\\BitrixDebugger\\Contract\\ShowModableContract" => $ggrachRootpathClassAutoload . "/BitrixDebugger/Contract/ShowModableContract.php", |
| 50 | + "\\GGrach\\BitrixDebugger\\Configurator\\DebuggerConfigurator" => $ggrachRootpathClassAutoload . "/BitrixDebugger/Configurator/DebuggerConfigurator.php", |
| 51 | + "\\GGrach\\BitrixDebugger\\Configurator\\DebugBarConfigurator" => $ggrachRootpathClassAutoload . "/BitrixDebugger/Configurator/DebugBarConfigurator.php", |
| 52 | + "\\GGrach\\BitrixDebugger\\Cache\\RuntimeCache" => $ggrachRootpathClassAutoload . "/BitrixDebugger/Cache/RuntimeCache.php", |
| 53 | + "\\GGrach\\BitrixDebugger\\Validator\\ShowModeDebuggerValidator" => $ggrachRootpathClassAutoload . "/BitrixDebugger/Validator/ShowModeDebuggerValidator.php", |
| 54 | + "\\GGrach\\BitrixDebugger\\Representer\\DebugBarRepresenter" => $ggrachRootpathClassAutoload . "/BitrixDebugger/Representer/DebugBarRepresenter.php", |
| 55 | + "\\GGrach\\BitrixDebugger\\Events\\OnEndBufferContent" => $ggrachRootpathClassAutoload . "/BitrixDebugger/Events/OnEndBufferContent.php", |
56 | 56 | // Writer |
57 | | - "\GGrach\Writer\FileWriter" => $ggrachRootpathClassAutoload . "/Writer/FileWriter.php", |
58 | | - "\GGrach\Writer\Contract\WritableContract" => $ggrachRootpathClassAutoload . "/Writer/Contract/WritableContract.php", |
| 57 | + "\\GGrach\\Writer\\FileWriter" => $ggrachRootpathClassAutoload . "/Writer/FileWriter.php", |
| 58 | + "\\GGrach\\Writer\\Contract\\WritableContract" => $ggrachRootpathClassAutoload . "/Writer/Contract/WritableContract.php", |
59 | 59 | // Filtrator |
60 | | - "\GGrach\Filtrator\Filtrator" => $ggrachRootpathClassAutoload . "/Filtrator/Filtrator.php", |
61 | | - "\GGrach\Filtrator\FiltratorContract" => $ggrachRootpathClassAutoload . "/Filtrator/FiltratorContract.php" |
| 60 | + "\\GGrach\\Filtrator\\Filtrator" => $ggrachRootpathClassAutoload . "/Filtrator/Filtrator.php", |
| 61 | + "\\GGrach\\Filtrator\\FiltratorContract" => $ggrachRootpathClassAutoload . "/Filtrator/FiltratorContract.php" |
62 | 62 | ]); |
63 | 63 | $ggrachDebuggerConfigurator = new \GGrach\BitrixDebugger\Configurator\DebuggerConfigurator(); |
64 | 64 | $ggrachDebugBarConfigurator = new \GGrach\BitrixDebugger\Configurator\DebugBarConfigurator(); |
|
0 commit comments