Register the form builder instance.

@return void
349470
protected function registerFormBuilder()
    {
        $this->app->singleton('form', function($app)
        {
            return new BonesMacrosFormBuilder($app['html'], $app['url'], $app['view'], $app['session.store']->getToken());
        });
    }
627456
protected function registerFormBuilder()
    {
        $this->app->singleton('form', function ($app) {
            $this->loadConfigurationOptions();

            $form = new FormBuilder(
                $app['html'],
                $app['url'],
                $app['session.store']->token(),
                $this->getTheme()
            );

            $form->novalidate(
                $app['config']->get('html.novalidate', false)
            );

            return $form->setSessionStore($app['session.store']);
        });
    }
645551
public function register()
    {
        $this->mergeConfigFrom(__DIR__.'/../../../config/fields.php', 'soda.fields');

        $this->app->singleton('soda.form.registrar', function ($app) {
            return new FormFieldRegistrar($app['config']->get('soda.fields'));
        });

        $this->app->singleton('soda.form', function ($app) {
            return new FormBuilder($app['soda.form.registrar']);
        });
    }
982137
protected function registerFormBuilder()
    {
        // Load cms configuration
        $this->mergeConfigFrom(
            __DIR__ . '/../config/form-builder.php', 'form-builder'
        );
        // Register FormBuilder as singleton instance
        $this->app->singleton('form', function($app) {
            $form = new BootstrapFormBuilder(
                $app['html'],
                $app['url'],
                $app['view'],
                $app['session.store']->token()
            );
            // Return session store
            return $form->setSessionStore($app['session.store']);
        });
    }
507336
public function register()
    {
        $this->registerHtmlBuilder();

        $this->registerFormBuilder();

        $this->app->alias('html', HtmlBuilder::class);
        $this->app->alias('form', FormBuilder::class);

        $this->registerBladeDirectives();
    }
702579
public function register()
    {
        $this->registerHtmlBuilder();

        $this->registerFormBuilder();

        $this->registerAntaresFormBuilder();

        $this->registerCustomfieldsFinder();

        $this->app->alias('html', 'Antares\Html\HtmlBuilder');
        $this->app->alias('form', 'Antares\Html\FormBuilder');
    }
315569
public function registerForm()
    {
        // Get the fields from the config

        $flash = \Session::get('taskforce_user_message');

        $data = $this->buildData();
        $data['fields'] = $this->getRegistrationFields();
        $data['flash'] = $flash;
        $data['flash_type'] = 'error';

        return view('laravel-user::register', $data);
    }
836323
public function register()
	{
        $this->app->bind('vextSchema', function() {
            return new VextBuilder(Schema::getConnection());
        });

        $this->app->bind('vextValidate', function() {
            return new VextValidate();
        });

        $this->app->booting(function(){
            $loader = \Illuminate\Foundation\AliasLoader::getInstance();
            $loader->alias('VextSchema', 'Qlcorp\VextFramework\Facades\VextSchema');
            $loader->alias('VextValidate', 'Qlcorp\VextFramework\Facades\VextValidate');
        });

        $this->app->bindShared('command.migrate.generate', function($app) {
            $packagePath = $app['path.base'].'/vendor';
            $repository = $app['migration.repository'];
            $migrator = new VextMigrator($repository, $app['db'], $app['files']);
            return new GenerateModelsCommand($migrator, $packagePath);
        });

        $this->commands('command.migrate.generate');
	}
437166
public function form() {
		if(is_null($this->registration_form)) {
			$this->registration_form = new Form();
			$this->registration_form->registerTemplate();
			$this->registerFeature('jabber:iq:register');
		}
		return $this->registration_form;
	}
515599
protected function register()
    {
        // Setup taxonomy relationships.
        $this->relation();

        // Make taxonomy model for the factory.
        $this->setModel($this->makeTaxonomyModel());

        // Build taxonomy with model and singularity holders.
        $this->setSingularity($this->makeTaxonomyInstance());

        // Set fields to the taxonomy.
        if ($this->methodExist('fields')) {
            $this->registerFields();
        }

        // Set columns to the taxonomy, after admin init.
        if ($this->methodExist('columns')) {
            $this->registerColumns();
        }
    }
742602
public function register()
	{
		$this->app['db'] = function($app)
		{
			// @FIXME: this isn't pretty, but it will shim the removal of the old mysql_* calls from php
			$driver = ($app['config']->get('dbtype') == 'pdo') ? 'mysql' : $app['config']->get('dbtype');

			$options = [
				'driver'   => $driver,
				'host'     => $app['config']->get('host'),
				'user'     => $app['config']->get('user'),
				'password' => $app['config']->get('password'),
				'database' => $app['config']->get('db'),
				'prefix'   => $app['config']->get('dbprefix')
			];

			return Driver::getInstance($options);
		};
	}
710982
public function register()
    {
        $this->app->singleton('form', function ($app) {
            return new FormFactory(
                $this->app['config']->get('form'),
                $this->app['request']->session()->get('_old_input'),
                $this->app['request']->session()->get('errors')
            );
        });

        $this->app->singleton('form_honeypot', function ($app) {
            return new HoneyPot(null);
        });

        $this->app->singleton('form_timetrap', function ($app) {
            return new TimeTrap(null);
        });
    }
59164
public function register()
    {
        $this->commands('Kris\LaravelFormBuilder\Console\FormMakeCommand');

        $this->registerHtmlIfNeeded();
        $this->registerFormIfHeeded();

        $this->mergeConfigFrom(
            __DIR__ . '/../../config/config.php',
            'laravel-form-builder'
        );

        $this->registerFormHelper();

        $this->app->singleton('laravel-form-builder', function ($app) {

            return new FormBuilder($app, $app['laravel-form-helper'], $app['events']);
        });

        $this->app->alias('laravel-form-builder', 'Kris\LaravelFormBuilder\FormBuilder');

        $this->app->afterResolving(Form::class, function ($object, $app) {
            $request = $app->make('request');

            if (in_array(ValidatesWhenResolved::class, class_uses($object)) && $request->method() !== 'GET') {
                $form = $app->make('laravel-form-builder')->setDependenciesAndOptions($object);
                $form->buildForm();
                $form->redirectIfNotValid();
            }
        });
    }
534353
public function register()
    {
        $this->app->singleton('soda.menu.registrar', function ($app) {
            return new MenuRegistrar;
        });

        $this->app->singleton('soda.menu', function ($app) {
            return new MenuBuilder($app['soda.menu.registrar']);
        });
    }
238103
private function registerFormIfHeeded()
    {
        if (!$this->app->offsetExists('form')) {

            $this->app->singleton('form', function($app) {

                // LaravelCollective\HtmlBuilder 5.2 is not backward compatible and will throw an exception
                $version = substr(Application::VERSION, 0, 3);

                if(Str::is('5.4', $version)) {
                    $form = new LaravelForm($app[ 'html' ], $app[ 'url' ], $app[ 'view' ], $app[ 'session.store' ]->token());
                }
                else if (Str::is('5.0', $version) || Str::is('5.1', $version)) {
                    $form = new LaravelForm($app[ 'html' ], $app[ 'url' ], $app[ 'session.store' ]->token());
                }
                else {
                    $form = new LaravelForm($app['html'], $app['url'], $app['view'], $app['session.store']->token());
                }

                return $form->setSessionStore($app['session.store']);
            });

            if (! $this->aliasExists('Form')) {

                AliasLoader::getInstance()->alias(
                    'Form',
                    'Collective\Html\FormFacade'
                );
            }
        }
    }
968811
protected function registerFormBuilder()
    {
        $this->app->singleton('form', function ($app) {
            $form = new BootstrapFormBuilder($app['html'], $app['url'], $app['view'], $app['session.store']->getToken());

            return $form->setSessionStore($app['session.store']);
        });
    }
591070
public function register()
    {
        $this->app->singleton('scaffolder.command.generate', function ($app)
        {
            return new GeneratorCommand($app['scaffolder.theme.views'], $app['scaffolder.theme.layouts'], $app['scaffolder.theme.extension'], $app->tagged('scaffolder.extension'));
        });

        $this->app->singleton('scaffolder.command.cache.clear', function ()
        {
            return new ClearCacheCommand();
        });

        $this->app->singleton('scaffolder.command.api.initialize', function ()
        {
            return new InitializeApiCommand();
        });

        $this->commands([
            'scaffolder.command.generate',
            'scaffolder.command.cache.clear',
            'scaffolder.command.api.initialize'
        ]);
    }