|
4 | 4 |
|
5 | 5 | use Bitrix\Main\Loader; |
6 | 6 |
|
7 | | -include 'inizializer_alias.php'; |
8 | | - |
9 | 7 | Loader::registerAutoLoadClasses(null, [ |
10 | | - "\Fred\GiftCard\Configuration\IblockConfiguration" => "/bitrix/php_interface/src/GiftCard/Configuration/IblockConfiguration.php", |
11 | | - "\Fred\GiftCard\Configuration\OrderConfiguration" => "/bitrix/php_interface/src/GiftCard/Configuration/OrderConfiguration.php", |
12 | | - "\Fred\GiftCard\Configuration\GiftCardConfiguration" => "/bitrix/php_interface/src/GiftCard/Configuration/GiftCardConfiguration.php", |
13 | | - "\Fred\GiftCard\Configuration\SenderConfiguration" => "/bitrix/php_interface/src/GiftCard/Configuration/SenderConfiguration.php", |
14 | | - "\Fred\GiftCard\Validation\GiftCardValidator" => "/bitrix/php_interface/src/GiftCard/Validation/GiftCardValidator.php", |
15 | | - "\Fred\GiftCard\Repository\GiftCardsRepository" => "/bitrix/php_interface/src/GiftCard/Repository/GiftCardsRepository.php", |
16 | | - "\Fred\GiftCard\Repository\GiftCardsSenderRepository" => "/bitrix/php_interface/src/GiftCard/Repository/GiftCardsSenderRepository.php", |
17 | | - "\Fred\GiftCard\Order\GiftCardOrderManager" => "/bitrix/php_interface/src/GiftCard/Order/GiftCardOrderManager.php", |
18 | | - "\Fred\GiftCard\Factory\GiftCardFactory" => "/bitrix/php_interface/src/GiftCard/Factory/GiftCardFactory.php", |
19 | | - "\Fred\GiftCard\Factory\GiftCardQueueItemFactory" => "/bitrix/php_interface/src/GiftCard/Factory/GiftCardQueueItemFactory.php", |
20 | | - "\Fred\GiftCard\Models\GiftCard" => "/bitrix/php_interface/src/GiftCard/Models/GiftCard.php", |
21 | | - "\Fred\GiftCard\Models\GiftCardQueueItem" => "/bitrix/php_interface/src/GiftCard/Models/GiftCardQueueItem.php", |
22 | | - "\Fred\GiftCard\Agents\GiftCardSendingAgent" => "/bitrix/php_interface/src/GiftCard/Agents/GiftCardSendingAgent.php", |
23 | | - "\Fred\GiftCard\Utils\UserOrderCreatorUtil" => "/bitrix/php_interface/src/GiftCard/Utils/UserOrderCreatorUtil.php", |
24 | | - "\Fred\GiftCard\Exception\CreateUserException" => "/bitrix/php_interface/src/GiftCard/Exception/CreateUserException.php", |
25 | | - "\Fred\GiftCard\Senders\GiftCardsEmailSender" => "/bitrix/php_interface/src/GiftCard/Senders/GiftCardsEmailSender.php", |
26 | | - "\Fred\GiftCard\Senders\GiftCardsSenderDistributor" => "/bitrix/php_interface/src/GiftCard/Senders/GiftCardsSenderDistributor.php", |
27 | | - "\Fred\GiftCard\Senders\GiftCardsSmsSender" => "/bitrix/php_interface/src/GiftCard/Senders/GiftCardsSmsSender.php", |
| 8 | + "\GGrach\BitrixDebugger\Debugger\Debugger" => __DIR__ . "/src/BitrixDebugger/Debugger/Debugger.php", |
| 9 | + "\GGrach\BitrixDebugger\Debugger\DebuggerShowModable" => __DIR__ . "/src/BitrixDebugger/Debugger/DebuggerShowModable.php", |
| 10 | + "\GGrach\BitrixDebugger\Contract\ShowModableContract" => __DIR__ . "/src/BitrixDebugger/Contract/ShowModableContract.php", |
| 11 | + "\GGrach\BitrixDebugger\Configurator\DebuggerConfigurator" => __DIR__ . "/src/BitrixDebugger/Configurator/DebuggerConfigurator.php", |
| 12 | + "\GGrach\BitrixDebugger\Configurator\DebugBarConfigurator" => __DIR__ . "/src/BitrixDebugger/Configurator/DebugBarConfigurator.php", |
| 13 | + "\GGrach\BitrixDebugger\Cache\RuntimeCache" => __DIR__ . "/src/BitrixDebugger/Cache/RuntimeCache.php", |
| 14 | + "\GGrach\BitrixDebugger\Validator\ShowModeDebuggerValidator" => __DIR__ . "/src/BitrixDebugger/Validator/ShowModeDebuggerValidator.php", |
| 15 | + "\GGrach\Writer\FileWriter" => __DIR__ . "/src/Writer/FileWriter.php", |
| 16 | + "\GGrach\Writer\Contract\WritableContract" => __DIR__ . "/src/Writer/Contract/WritableContract.php" |
28 | 17 | ]); |
| 18 | + |
| 19 | +$ggrachDebuggerConfigurator = new \GGrach\BitrixDebugger\Configurator\DebuggerConfigurator(); |
| 20 | +$ggrachDebugBarConfigurator = new \GGrach\BitrixDebugger\Configurator\DebugBarConfigurator(); |
| 21 | + |
| 22 | +$ggrachDebuggerConfigurator->setLogPath('error', __DIR__ . '/logs/error.log'); |
| 23 | +$ggrachDebuggerConfigurator->setLogPath('warning', __DIR__ . '/logs/warning.log'); |
| 24 | +$ggrachDebuggerConfigurator->setLogPath('success', __DIR__ . '/logs/success.log'); |
| 25 | +$ggrachDebuggerConfigurator->setLogPath('notice', __DIR__ . '/logs/notice.log'); |
| 26 | + |
| 27 | +global $GD; |
| 28 | +$GD = new \GGrach\BitrixDebugger\Debugger\Debugger($ggrachDebuggerConfigurator, $ggrachDebugBarConfigurator); |
| 29 | + |
| 30 | +include 'inizializer_alias.php'; |
0 commit comments