lib/hanami/providers/rack.rb in hanami-2.0.0.beta4 vs lib/hanami/providers/rack.rb in hanami-2.0.0.rc1

- old
+ new

@@ -1,16 +1,28 @@ # frozen_string_literal: true module Hanami + # @api private module Providers + # Provider source to register Rack integration components in Hanami slices. + # + # @see Hanami::Providers::Logger + # @see Hanami::Web::RackLogger + # @see https://github.com/rack/rack + # @see https://dry-rb.org/gems/dry-monitor/ + # + # @api private + # @since 2.0.0 class Rack < Dry::System::Provider::Source + # @api private def prepare require "dry/monitor" require "hanami/web/rack_logger" Dry::Monitor.load_extensions(:rack) end + # @api private def start target.start :logger notifications = target[:notifications]