src/InterfaceBuilder/Forms/FormServiceProvider.php
/**
     * Register bindings in the container.
     *
     * @return void
     */
Register bindings in the container.
@return void
Register bindings in the container . @return void
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']);
        });
    }
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' ] ) ; } ) ; }
Register bindings in the container.
Register bindings in the container .