protected function registerErrorBindings()
    {
        $this->app->singleton(ErrorMessageResolverContract::class, function ($app) {
            return $app->make(ErrorMessageResolver::class);
        });

        $this->app->singleton(ErrorFactoryContract::class, function ($app) {
            return $app->make(ErrorFactory::class);
        });

        $this->app->bind(ErrorResponseBuilder::class, function ($app) {
            return (new ErrorResponseBuilder($app->make(ResponseFactoryContract::class), $app->make(ErrorFactoryContract::class)))->serializer($app->make(ErrorSerializerContract::class));
        });
    }
protected function registerErrorBindings()
    {
        $this->app->singleton(ErrorMessageResolverContract::class, function ($app) {
            return $app->make(ErrorMessageResolver::class);
        });

        $this->app->singleton(ErrorFactoryContract::class, function ($app) {
            return $app->make(ErrorFactory::class);
        });

        $this->app->bind(ErrorResponseBuilder::class, function ($app) {
            return (new ErrorResponseBuilder($app->make(ResponseFactoryContract::class), $app->make(ErrorFactoryContract::class)))->serializer($app->make(ErrorSerializerContract::class));
        });
    }
protected function registerErrorBindings ( ) { $ this -> app -> singleton ( ErrorMessageResolverContract :: class , function ( $ app ) { return $ app -> make ( ErrorMessageResolver :: class ) ; } ) ; $ this -> app -> singleton ( ErrorFactoryContract :: class , function ( $ app ) { return $ app -> make ( ErrorFactory :: class ) ; } ) ; $ this -> app -> bind ( ErrorResponseBuilder :: class , function ( $ app ) { return ( new ErrorResponseBuilder ( $ app -> make ( ResponseFactoryContract :: class ) , $ app -> make ( ErrorFactoryContract :: class ) ) ) -> serializer ( $ app -> make ( ErrorSerializerContract :: class ) ) ; } ) ; }
Register error bindings.

@return void
Register error bindings .