Create the builder factory.

@return builder_factory
767339
public static function get_builder_factory() : builder_factory {
        global $PAGE;

        return new builder_factory(
            self::get_legacy_data_mapper_factory(),
            self::get_exporter_factory(),
            self::get_vault_factory(),
            self::get_manager_factory(),
            $PAGE->get_renderer('mod_forum')
        );
    }
271781
public function createTwigEnvironmentBuilder()
    {
        $this->ensureCsrfTokenManagerAndTranslatorExist();
        $builder = new TwigEnvironmentBuilder();
        return $builder->setCsrfTokenManager($this->csrf_token_manager)->setTranslator($this->translator);
    }
660055
public function build()
    {
        if (!$this->factory) {
            $this->factory = $this->createDefaultFactory();
        }

        return $this->cache ? new CachedLoggerFactory($this->factory) : $this->factory;
    }
498649
public function getQueueFactory(): ?Factory
    {
        if (!$this->hasQueueFactory()) {
            $this->setQueueFactory($this->getDefaultQueueFactory());
        }
        return $this->queueFactory;
    }
681018
static function factory()
    {
        if ( self::$factory === false )
        {
            self::$factory = true;
            self::instance()->readINISettings();
            eZImageAnalyzer::readAnalyzerSettingsFromINI();
        }
        return self::instance();
    }
48460
public function buildFormFactory()
    {
        $this->ensureCsrfTokenManagerAndTranslatorExist();
        $validator = $this->buildValidator();
        $csrf      = new CsrfExtension(
            $this->csrf_token_manager,
            $this->translator,
            TranslatorBuilder::TRANSLATION_DOMAIN
        );
        $builder   = Forms::createFormFactoryBuilder()->addExtension($csrf)
                                            ->addExtension(new ValidatorExtension($validator))
                                            ->addExtension(new HttpFoundationExtension());
        foreach ($this->form_extensions as $extension) {
            $builder->addExtension($extension);
        }
        return $builder->getFormFactory();
    }
1126216
public static Builder builder() {
    return new AutoValue_Source.Builder()
        .setPath(DEV_NULL)
        .setCode("")
        .setOriginalCodeSupplier(null)
        .setSourceMap("")
        .setSourceUrl("")
        .setSourceMappingUrl("")
        .setRuntimes(ImmutableSet.of())
        .setLoadFlags(ImmutableMap.of())
        .setEstimatedSize(0);
  }
945832
public static function createLayoutFactoryBuilder()
    {
        $builder = new LayoutFactoryBuilder(
            new ExpressionProcessor(
                new ExpressionLanguage(),
                new ExpressionEncoderRegistry(
                    [
                        'json' => new JsonExpressionEncoder(new ExpressionManipulator())
                    ]
                )
            )
        );

        $builder->addExtension(new CoreExtension());

        return $builder;
    }
1115077
public static function factory()
    {
        $self = new static();
        $self->downloader = new Plugins\Xml\Downloader();
        $self->writer     = new Plugins\Xml\Writer();
        
        $self->outputter  = new Plugins\NullObject();

        return $self;
    }
567950
protected function build()
    {
        $factory = $this->getFactory();

        foreach ($this->filterConfig as $field => $config) {
            $this->add(
                $factory->createInput(
                    $config
                )
            );
        }
    }
599706
public function factory()
    {
        $redis = new \Redis();
        $host = $this->getConfig()->getValue(self::CONFIG_HOST);
        $port = $this->getConfig()->getValue(self::CONFIG_PORT);
        $timeout = $this->getConfig()->getValue(self::CONFIG_TIMEOUT);

        if ($this->getConfig()->getValueFlag(self::CONFIG_PERSISTENT)) {
            $redis->pconnect($host, $port, $timeout);
        } else {
            $redis->connect($host, $port, $timeout);
        }

        if ($this->getConfig()->hasValue(self::CONFIG_DATABASE)) {
            $redis->select($this->getConfig()->getValue(self::CONFIG_DATABASE));
        }

        return $redis;
    }
508114
public FactoryFactory build() {
        return new FactoryFactory(
                getJceProvider(),
                getHttpClient(),
                getKeyCache(),
                getApiBaseURL(),
                getApiIdentifier(),
                getRequestExpireSeconds(),
                offsetTTL,
                currentPublicKeyTTL,
                entityKeyMap
        );

    }
1227634
public static function getILoggerFactory () {
    static $nop;
    if (null === self::$factory) {
      if (null == $nop) {
        $nop = new NOPLoggerFactory();
      }
      return $nop;
    }
    return self::$factory;
  }
855046
protected function createWorker()
    {
        if ($this->workerCreator !== null) {
            return call_user_func($this->workerCreator);
        } else {
            return new Worker($this->loader);
        }
    }
1068369
protected function createContainerBuilder()
	{
		$builder = new ContainerBuilder();
		
		foreach($this->getContainerParams() as $k => $v)
		{
			$builder->setParameter($k, $v);
		}
		
		return $builder;
	}
151443
protected function reactorFactory(): Reactor
	{
		return new Reactor($this->container->get(Input::class), $this->container->get(Output::class), $this->container);
	}
668647
public function build()
    {
        $config = array_merge([
            'type' => $this->type,
        ], $this->getConfig());

        foreach ($config as $key => $value) {
            if ($value instanceof Builder) {
                $config[$key] = $value->build();
            }
        }

        return $config;
    }