Bitrix-D7  20.5.0
sale/lib/rest/synchronization/push.php
См. документацию.
1 <?php
2 require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php");
3 
5 
7 
8 \Bitrix\Sale\Rest\Synchronization\LoggerDiag::addMessage('_POST',var_export($request->getPostList()->toArray(), true));
9 
10 if($request->getPost('event') !== null)
11 {
13 
14  \Bitrix\Sale\Rest\Synchronization\LoggerDiag::addMessage('_POST',var_export($request->getPostList(), true));
15 
17  $b24->incomingReplication();
18 }
19 
20 require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/epilog_after.php");
21 ?>
static getCurrent()
Static method returns current instance of context.
static includeModule($moduleName)
Includes a module by its name.