Sha256: 4c15bd90d7ffe375f85d4d60f5b5f534e8e2a44d5386b7996cf2b4b6e7d852c9

Contents?: true

Size: 291 Bytes

Versions: 4

Compression:

Stored size: 291 Bytes

Contents

# frozen_string_literal: true

Hanami.application.register_provider :rack_monitor do
  start do
    require "dry/monitor"
    require "dry/monitor/rack/middleware"

    middleware = Dry::Monitor::Rack::Middleware.new(target[:notifications])

    register :rack_monitor, middleware
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
hanami-2.0.0.alpha8 lib/hanami/application/container/providers/rack_monitor.rb
hanami-2.0.0.alpha7.1 lib/hanami/application/container/providers/rack_monitor.rb
hanami-2.0.0.alpha7 lib/hanami/application/container/providers/rack_monitor.rb
hanami-2.0.0.alpha6 lib/hanami/application/container/providers/rack_monitor.rb