WordPress\AiClientDependencies\Http\Discovery\Strategy

PuliBetaStrategy::getPuliFactory │ private static │ WP 1.0

Метод класса: PuliBetaStrategy{}

Хуков нет.

Возвращает

GeneratedPuliFactory.

Использование

$result = PuliBetaStrategy::getPuliFactory();

Код PuliBetaStrategy::getPuliFactory() WP 7.1.5

private static function getPuliFactory()
{
    if (null === self::$puliFactory) {
        if (!defined('PULI_FACTORY_CLASS')) {
            throw new PuliUnavailableException('Puli Factory is not available');
        }
        $puliFactoryClass = PULI_FACTORY_CLASS;
        if (!ClassDiscovery::safeClassExists($puliFactoryClass)) {
            throw new PuliUnavailableException('Puli Factory class does not exist');
        }
        self::$puliFactory = new $puliFactoryClass();
    }
    return self::$puliFactory;
}