lib/contrast/utils/invalid_configuration_util.rb in contrast-agent-4.8.0 vs lib/contrast/utils/invalid_configuration_util.rb in contrast-agent-4.9.0
- old
+ new
@@ -1,17 +1,18 @@
# Copyright (c) 2021 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details.
# frozen_string_literal: true
require 'contrast/agent/assess/policy/trigger_method'
-require 'contrast/components/interface'
+require 'contrast/components/logger'
+require 'contrast/components/scope'
module Contrast
module Utils
# This utility allows us to report invalid configurations detected in
# customer applications, as determined by Configuration Rules at runtime.
module InvalidConfigurationUtil
- include Contrast::Components::Interface
- access_component :analysis, :app_context, :logging, :scope
+ include Contrast::Components::Logger::InstanceMethods
+ include Contrast::Components::Scope::InstanceMethods
CS__PATH = 'path'
CS__SESSION_ID = 'sessionId'
CS__SNIPPET = 'snippet'