11 private static $enginePool;
16 private static function getServices() : array
19 Seo\BusinessSuite\Service::getInstance(),
20 Seo\LeadAds\Service::getInstance(),
21 Seo\Analytics\Service::getInstance(),
22 Seo\Retargeting\Service::getInstance(),
23 Seo\Marketing\Service::getInstance(),
24 Seo\Catalog\Service::getInstance()
31 private static function getEnginePool() : array
33 if(!static::$enginePool)
35 static::$enginePool = [];
36 foreach (self::getServices() as $service)
38 foreach ($service::getTypes() as $type)
40 static::$enginePool[$service::getEngineCode($type)] = $service;
44 return static::$enginePool;
56 if(array_key_exists($engineCode,$pool = static::getEnginePool()))
58 return $pool[$engineCode];