app/Providers/AppServiceProvider.php
/**
     * Register any application services.
     *
     * @return void
     */
Register any application services.
@return void
Register any application services . @return void
public function register()
    {
        $this->app->singleton(DmClient::class, function() {
            return new DmClient(config('services.dmserver.endpoint'), config('services.dmserver.roles_passwords'));
        });
        $this->app->singleton(Publications::class, function() {
            return new Publications(resolve(DmClient::class));
        });
    }
public function register ( ) { $ this -> app -> singleton ( DmClient :: class , function ( ) { return new DmClient ( config ( 'services.dmserver.endpoint' ) , config ( 'services.dmserver.roles_passwords' ) ) ; } ) ; $ this -> app -> singleton ( Publications :: class , function ( ) { return new Publications ( resolve ( DmClient :: class ) ) ; } ) ; }
Register any application services.
Register any application services .