3namespace Bitrix\Seo\Controller\Business;
6use Bitrix\Seo\BusinessSuite\ServiceAdapter;
7use Bitrix\Seo\BusinessSuite\Utils;
8use Bitrix\Seo\BusinessSuite;
9use Bitrix\Main\Engine\Response\AjaxJson;
10use Bitrix\Seo\BusinessSuite\Configuration\Facebook;
27 if (is_string($engineCode) && is_array($setup) && is_array(
$config))
31 ->setEngineCode($engineCode)
32 ->setType($service::getTypeByEngine($engineCode));
37 'authUrl' => $serviceContainer->getAuthAdapter($meta->getType())
49 $response = AjaxJson::createError($handler->getErrorCollection(),$handler->getCustomData());
51 catch (\Throwable $exception)
static loadFromArray(array $array)
static handle(ConfigException $exception)
static createServiceWrapperContainer()
static getServiceByEngineCode(string $engineCode)
installAction($engineCode, $setup, $config)