Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
manager.php
1<?php
3
6
12{
14 private static $entityList = [];
15
19 public static function getPathPrefix(): string
20 {
21 return "/.well-known/";
22 }
23
27 protected static function getUrlRewritePath(): string
28 {
29 return "/bitrix/services/sale/domainverification.php";
30 }
31
38 protected static function getEntityList() : array
39 {
40 if (empty(self::$entityList))
41 {
42 foreach (Sale\PaySystem\Manager::getHandlerList() as $handlers)
43 {
44 foreach (array_keys($handlers) as $handler)
45 {
47 [$className] = Sale\PaySystem\Manager::includeHandler($handler);
48 if (is_subclass_of($className, IVerificationable::class))
49 {
50 if ($className::getModeList())
51 {
52 foreach ($className::getModeList() as $mode)
53 {
54 self::$entityList[] = $handler.$mode;
55 }
56 }
57 else
58 {
59 self::$entityList[] = $handler;
60 }
61 }
62 }
63 }
64 }
65
66 return self::$entityList;
67 }
68}