text: "use strict";
  // Copyright IBM Corp. 2018,2020. All Rights Reserved.
  // Node module: @loopback/rest
  // This file is licensed under the MIT License.
  // License text available at https://opensource.org/licenses/MIT
  Object.defineProperty(exports, "__esModule", { value: true });
  const tslib_1 = require("tslib");
  const context_1 = require("@loopback/context");
  const keys_1 = require("../keys");
  let BindElementProvider = class BindElementProvider {
      constructor(context) {
          this.context = context;
      }
      value() {
          return key => this.action(key);
      }
      action(key) {
          return this.context.bind(key);
      }
  };
  BindElementProvider = tslib_1.__decorate([
      tslib_1.__param(0, context_1.inject(keys_1.RestBindings.Http.CONTEXT)),
      tslib_1.__metadata("design:paramtypes", [context_1.Context])
  ], BindElementProvider);
  exports.BindElementProvider = BindElementProvider;
  //# sourceMappingURL=bind-element.provider.js.map