src/SodaServiceProvider.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()
    {
        require_once __DIR__.'/helpers.php';
        class_alias('Soda\Cms\Support\DataSet', 'Zofe\Rapyd\DataSet');
        class_alias('Soda\Cms\Support\DataField', 'Zofe\Rapyd\DataForm\Field\Field');
        $this->mergeConfigFrom(__DIR__.'/../config/publish/cms.php', 'soda.cms');
        $this->mergeConfigFrom(__DIR__.'/../config/publish/cache.php', 'soda.cache');
        $this->mergeConfigFrom(__DIR__.'/../config/publish/upload.php', 'soda.upload');
        $this->mergeConfigFrom(__DIR__.'/../config/sortable.php', 'soda.sortable');
        $this->registerDependencies([
            AuthServiceProvider::class,
            EventServiceProvider::class,
            RequestMatcherServiceProvider::class,
            CommandsServiceProvider::class,
            InterfaceBuilderServiceProvider::class,
            MenuServiceProvider::class,
            BreadcrumbServiceProvider::class,
            FormServiceProvider::class,
            DashboardServiceProvider::class,
            RapydServiceProvider::class,
            SortableServiceProvider::class,
            LaratrustServiceProvider::class,
            ImageServiceProvider::class,
            ApplicationServiceProvider::class,
            FieldServiceProvider::class,
            BlockServiceProvider::class,
            ContentServiceProvider::class,
            UserServiceProvider::class,
        ]);
        $this->registerFacades([
            'Soda' => Soda::class,
        ]);
        $this->app->singleton('soda', function ($app) {
            return new SodaInstance($app);
        });
        $this->app->singleton('soda.drafting', function ($app) {
            return new DraftingHandler();
        });
    }
public function register ( ) { require_once __DIR__ . '/helpers.php' ; class_alias ( 'Soda\Cms\Support\DataSet' , 'Zofe\Rapyd\DataSet' ) ; class_alias ( 'Soda\Cms\Support\DataField' , 'Zofe\Rapyd\DataForm\Field\Field' ) ; $ this -> mergeConfigFrom ( __DIR__ . '/../config/publish/cms.php' , 'soda.cms' ) ; $ this -> mergeConfigFrom ( __DIR__ . '/../config/publish/cache.php' , 'soda.cache' ) ; $ this -> mergeConfigFrom ( __DIR__ . '/../config/publish/upload.php' , 'soda.upload' ) ; $ this -> mergeConfigFrom ( __DIR__ . '/../config/sortable.php' , 'soda.sortable' ) ; $ this -> registerDependencies ( [ AuthServiceProvider :: class , EventServiceProvider :: class , RequestMatcherServiceProvider :: class , CommandsServiceProvider :: class , InterfaceBuilderServiceProvider :: class , MenuServiceProvider :: class , BreadcrumbServiceProvider :: class , FormServiceProvider :: class , DashboardServiceProvider :: class , RapydServiceProvider :: class , SortableServiceProvider :: class , LaratrustServiceProvider :: class , ImageServiceProvider :: class , ApplicationServiceProvider :: class , FieldServiceProvider :: class , BlockServiceProvider :: class , ContentServiceProvider :: class , UserServiceProvider :: class , ] ) ; $ this -> registerFacades ( [ 'Soda' => Soda :: class , ] ) ; $ this -> app -> singleton ( 'soda' , function ( $ app ) { return new SodaInstance ( $ app ) ; } ) ; $ this -> app -> singleton ( 'soda.drafting' , function ( $ app ) { return new DraftingHandler ( ) ; } ) ; }
Register bindings in the container.
Register bindings in the container .
// Override Zofe DataSet // Soda Dependencies // Plugins //AuditingServiceProvider::class, // Deferred Model Providers