Queues a store to be built
@param string $storeName
@param $builderName
@param array $options
@return StoreRegistryBuilder
553184
private function addStoreToBuildQueue($storeName, $builderName, array $options)
    {
        if (!$this->factory->getRegistry()->has($builderName)) {
            throw new \DomainException(sprintf("Unknown builder: %s", $builderName));
        }
        $this->buildQueue[$storeName] = array($builderName, $options);
        return $this;
    }
959194
public function buildForm(FormBuilderInterface $builder, array $options)
    {
        parent::buildForm($builder, $options);

        $this->addIban($builder)
            ->addBic($builder);
    }
90898
protected function performSearch(Builder $builder, array $options = [])
    {
        $index = $builder->index ?: $builder->model->searchableAs();
        $limit = $builder->limit ?: 10000;
        $this->tnt->selectIndex("{$index}.index");

        $this->builder = $builder;
        $this->tnt->asYouType = $builder->model->asYouType ?: false;

        if ($builder->callback) {
            return call_user_func(
                $builder->callback,
                $this->tnt,
                $builder->query,
                $options
            );
        }
        if (isset($this->tnt->config['searchBoolean']) ? $this->tnt->config['searchBoolean'] : false) {
            return $this->tnt->searchBoolean($builder->query, $limit);
        } else {
            return $this->tnt->search($builder->query, $limit);
        }
    }
1114177
public function build($options = [])
    {
        $options       = array_merge($this->defaultOptions, $options);

        $clientBuilder = $this->clientBuilder->create();

        $hosts = $this->getHosts($options);

        if (!empty($hosts)) {
            $clientBuilder->setHosts($hosts);
        }

        if ($options['is_debug_mode_enabled']) {
            $clientBuilder->setLogger($this->logger);
            $clientBuilder->setTracer($this->logger);
        }

        return $clientBuilder->build();
    }
631334
final public static function create(string $classname, array $options = array())
    {
        $re =  new FrameworkReflection();
        return ($re->__simpleReturned($classname, $options));
    }
947462
public function buildForm(FormBuilderInterface $builder, array $options)
    {
        //====================================================================//
        // Dispatch Object Listing Event
        $this->getEventDispatcher()->dispatch(FormListingEvent::NAME, new FormListingEvent($builder, $options));
    }
21636
public static function build(Table $table, $columnName, $type = null, $options = [])
    {
        $column = new Column();
        $column->setName($columnName);
        $column->setType($type);
        $column->setOptions($options); // map options to column methods

        return new static($table, $column);
    }
301156
public function createBuilder($type, array $options = [])
    {
        $metaType = $this->createType($type);
        $options = $this->getOptions($metaType, $options);

        $dataClass = isset($options['data_class']) ? $options['data_class'] : Meta::class;
        $builder = new MetaBuilder($this, $dataClass);
        $this->buildMeta($builder, $metaType, $options);

        return $builder;
    }
550003
public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            ->add('x', NumberType::class, array())
            ->add('y', NumberType::class, array())
            ->add('width', NumberType::class, array())
            ->add('height', NumberType::class, array())
            ->add('rotate', NumberType::class, array())
            ->add('scaleX', NumberType::class, array())
            ->add('scaleY', NumberType::class, array())
        ;
    }
655248
public static StorageBuilder forProvider( String providerName )
    {
        Class<?> providerClass = PROVIDERS.get( providerName );

        if ( providerClass == null ) {
            throw new IllegalArgumentException( "No provider implementation registered for name: " + providerName );
        }

        return new StorageBuilder( providerName, providerClass );
    }
862319
public function createFormBuilder($data = null, array $options = array())
    {
        $type = 'Symfony\Component\Form\Extension\Core\Type\FormType';
        return $this->container->get('form.factory')->createBuilder($type, $data, $options);
    }
325278
public function make($name, $options = [])
    {
        if (!$name || !$this->exists($name)) {
            return null;
        }

        return $name($options);
    }
945023
public function changeColumn($columnName, array $options)
    {
        $column = $this->getColumn($columnName);
        $column->setOptions($options);

        return $this;
    }
1026306
public function blockJson($blockName, $options = [])
    {
        if (array_key_exists('returnAll', $options) && $options['returnAll']) {
            // don't load blocks from db (otherwise every db block will always be found)
            return collect([])->toJson();
        }
        return parent::blockJson($blockName, $options);
    }
501621
public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            ->add('id', 'hidden')
            ->add('typeOfSchoolAttendanceAtFourteen', 'choice',
                array(
                    'placeholder' => 'form.select',
                    'label'       => 'socioEconomic.form.typeOfSchoolAttendanceAtFourteen.label',
                    'choices'     => array(
                        'A state run or funded school that did not select pupils on the basis of academic ability (e.g. a comprehensive, secondary modern, Scottish High School/Secondary School/Academy)' => 'A state run or funded school that did not select pupils on the basis of academic ability (e.g. a comprehensive, secondary modern, Scottish High School/Secondary School/Academy)',
                        'A state run or funded school that selected on the basis of academic ability'                                                                                                      => 'A state run or funded school that selected on the basis of academic ability',
                        'An independent school, but your fees were paid in part or full by the local authority (sometimes called a ‘direct grant’ school or an ‘assisted place’)'                          => 'An independent school, but your fees were paid in part or full by the local authority (sometimes called a ‘direct grant’ school or an ‘assisted place’)',
                        'An independent school, but your fees were paid in part or full by a bursary or scholarship'                                                                                       => 'An independent school, but your fees were paid in part or full by a bursary or scholarship',
                        'An independent school, and your fees were not paid in part by the local authority or bursary/scholarship'                                                                         => 'An independent school, and your fees were not paid in part by the local authority or bursary/scholarship',
                        'A school outside the UK education system'                                                                                                                                         => 'A school outside the UK education system',
                        'Prefer not to say'                                                                                                                                                                => 'Prefer not to say',
                    )
                )
            )
            ->add('firstPersonInImmediateFamilyToAttendUniversity', 'choice',
                array(
                    'placeholder' => 'form.select',
                    'label'       => 'socioEconomic.form.firstPersonInImmediateFamilyToAttendUniversity.label',
                    'choices'     => array(
                        'Yes'               => 'Yes',
                        'No'                => 'No',
                        'Don\'t Know'       => 'Don\'t Know',
                        'Prefer Not to Say' => 'Prefer Not to Say',
                    )
                )
            )
            ->add('eligibleForFreeSchoolMeals', 'choice',
                array(
                    'placeholder' => 'form.select',
                    'label'       => 'socioEconomic.form.eligibleForFreeSchoolMeals.label',
                    'choices'     => array(
                        'Yes'               => 'Yes',
                        'No'                => 'No',
                        'Don\'t Know'       => 'Don\'t Know',
                        'Prefer Not to Say' => 'Prefer Not to Say',
                    )
                )
            )
            ->add('everSpentMoreThanThreeMonthsInCare', 'choice',
                array(
                    'placeholder' => 'form.select',
                    'label'       => 'socioEconomic.form.everSpentMoreThanThreeMonthsInCare.label',
                    'choices'     => array(
                        'Yes'               => 'Yes',
                        'No'                => 'No',
                        'Don\'t Know'       => 'Don\'t Know',
                        'Prefer Not to Say' => 'Prefer Not to Say',
                    )
                )
            )
            ->add('everPersonallyHadRefugeeOrAsylumStatus', 'choice',
                array(
                    'placeholder' => 'form.select',
                    'label'       => 'socioEconomic.form.everPersonallyHadRefugeeOrAsylumStatus.label',
                    'choices'     => array(
                        'Yes'               => 'Yes',
                        'No'                => 'No',
                        'Don\'t Know'       => 'Don\'t Know',
                        'Prefer Not to Say' => 'Prefer Not to Say',
                    )
                )
            );

        return $builder;
    }
44577
protected function performSearch(Builder $builder, array $options = [])
    {
        if ($builder->callback) {
            return call_user_func(
                $builder->callback,
                ElasticClient::getFacadeRoot(),
                $builder->query,
                $options
            );
        }

        $results = [];

        $this
            ->buildSearchQueryPayloadCollection($builder, $options)
            ->each(function ($payload) use (&$results) {
                $results = ElasticClient::search($payload);

                $results['_payload'] = $payload;

                if ($this->getTotalCount($results) > 0) {
                    return false;
                }
            });

        return $results;
    }
827065
public function buildForm(FormBuilderInterface $builder, array $options)
    {
        /**
         * @var Plugin $plugin
         */
        $plugin = $options['plugin'];
        foreach ($plugin->getFields() as $fieldName => $field) {
            $builder
                ->remove($fieldName)
                ->add($fieldName, $field['type'], array_merge([
                    'label' => $field['label'],
                    'data' => $field['data'],
                    'required' => $field['required'],
                    'attr' => $field['attr'],
                ], $field['options']), $field);
        }

        $builder->add('save', 'submit');
    }