protected function registerResponseBuilders()
    {
        $this->app->bind(SuccessResponseBuilder::class, function ($app) {
            $builder = new SuccessResponseBuilder(response(), $app[ResourceFactory::class], $app[Manager::class]);

            if ($parameter = $app->config->get('responder.load_relations_from_parameter')) {
                $builder->include($this->app[Request::class]->input($parameter, []));
            }

            $builder->setIncludeSuccessFlag($app->config->get('responder.include_success_flag'));
            return $builder->setIncludeStatusCode($app->config->get('responder.include_status_code'));
        });

        $this->app->bind(ErrorResponseBuilder::class, function ($app) {
            $builder = new ErrorResponseBuilder(response(), $app['translator']);

            $builder->setIncludeSuccessFlag($app->config->get('responder.include_success_flag'));
            return $builder->setIncludeStatusCode($app->config->get('responder.include_status_code'));
        });
    }