Sha256: b46d64e4be7710fc4ac81135f6d968cd3e268ebe66c7a426cc95e8f3b9a3e907

Contents?: true

Size: 306 Bytes

Versions: 4

Compression:

Stored size: 306 Bytes

Contents

# frozen_string_literal: true

Hanami.application.register_bootable :rack_monitor do |container|
  start do
    require "dry/monitor"
    require "dry/monitor/rack/middleware"

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

    register :rack_monitor, middleware
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
hanami-2.0.0.alpha5 lib/hanami/application/container/boot/rack_monitor.rb
hanami-2.0.0.alpha4 lib/hanami/application/container/boot/rack_monitor.rb
hanami-2.0.0.alpha3 lib/hanami/application/container/boot/rack_monitor.rb
hanami-2.0.0.alpha2 lib/hanami/application/container/boot/rack_monitor.rb