src/HtmlServiceProvider.php
protected function registerFieldBuilder()
    {
        $this->app->bind('field', function ($app) {

            $this->loadConfigurationOptions();

            $fieldBuilder = new FieldBuilder(
                $app['form'],
                $this->theme,
                $app['translator']
            );

            if ($this->options['control_access']) {
                $fieldBuilder->setAccessHandler($app[AccessHandler::class]);
            }

            $fieldBuilder->setAbbreviations($this->options['abbreviations']);

            if (isset ($this->options['theme_values']['field_classes'])) {
                $fieldBuilder->setCssClasses(
                    $this->options['theme_values']['field_classes']
                );
            }

            if (isset ($this->options['theme_values']['field_templates'])) {
                $fieldBuilder->setTemplates(
                    $this->options['theme_values']['field_templates']
                );
            }

            $fieldBuilder->setSessionStore($app['session.store']);

            return $fieldBuilder;
        });
    }
protected function registerFieldBuilder()
    {
        $this->app->bind('field', function ($app) {

            $this->loadConfigurationOptions();

            $fieldBuilder = new FieldBuilder(
                $app['form'],
                $this->theme,
                $app['translator']
            );

            if ($this->options['control_access']) {
                $fieldBuilder->setAccessHandler($app[AccessHandler::class]);
            }

            $fieldBuilder->setAbbreviations($this->options['abbreviations']);

            if (isset ($this->options['theme_values']['field_classes'])) {
                $fieldBuilder->setCssClasses(
                    $this->options['theme_values']['field_classes']
                );
            }

            if (isset ($this->options['theme_values']['field_templates'])) {
                $fieldBuilder->setTemplates(
                    $this->options['theme_values']['field_templates']
                );
            }

            $fieldBuilder->setSessionStore($app['session.store']);

            return $fieldBuilder;
        });
    }
protected function registerFieldBuilder ( ) { $ this -> app -> bind ( 'field' , function ( $ app ) { $ this -> loadConfigurationOptions ( ) ; $ fieldBuilder = new FieldBuilder ( $ app [ 'form' ] , $ this -> theme , $ app [ 'translator' ] ) ; if ( $ this -> options [ 'control_access' ] ) { $ fieldBuilder -> setAccessHandler ( $ app [ AccessHandler :: class ] ) ; } $ fieldBuilder -> setAbbreviations ( $ this -> options [ 'abbreviations' ] ) ; if ( isset ( $ this -> options [ 'theme_values' ] [ 'field_classes' ] ) ) { $ fieldBuilder -> setCssClasses ( $ this -> options [ 'theme_values' ] [ 'field_classes' ] ) ; } if ( isset ( $ this -> options [ 'theme_values' ] [ 'field_templates' ] ) ) { $ fieldBuilder -> setTemplates ( $ this -> options [ 'theme_values' ] [ 'field_templates' ] ) ; } $ fieldBuilder -> setSessionStore ( $ app [ 'session.store' ] ) ; return $ fieldBuilder ; } ) ; }
Register the Field Builder instance
Register the Field Builder instance