PuliBetaStrategy::getPuliFactory(): WordPressAiClientDependenciesPuliGeneratedPuliFactory

In this article

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only by core. It is listed here for completeness.

Return

WordPressAiClientDependenciesPuliGeneratedPuliFactory

Source

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;
}

User Contributed Notes

You must log in before being able to contribute a note or feedback.