Файловый менеджер - Редактировать - /var/www/axolotl/data/www/axolotls.ru/www/bitrix/modules/seo/lib/retargeting/factory.php
Назад
<? namespace Bitrix\Seo\Retargeting; use Bitrix\Main\ArgumentOutOfRangeException; class Factory { public static function create($object, $type, $parameters = null) { $spaceList = explode('\\', $object); $objectClassName = array_pop($spaceList); array_push($spaceList, 'Services', $objectClassName); $className = implode('\\', $spaceList).mb_strtoupper(mb_substr($type, 0, 1)).mb_strtolower(mb_substr($type, 1)); if (!class_exists($object)) { throw new ArgumentOutOfRangeException('Object'); } if (!class_exists($className)) { throw new ArgumentOutOfRangeException('Type'); } $instance = new $className($parameters); return $instance; } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.8 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка