Method: Hanami::Slice::ClassMethods#shutdown

Defined in:
lib/hanami/slice.rb

#shutdownself

Shuts down the slice’s providers, as well as the providers in any nested slices.

Returns:

Since:

  • 2.0.0

API:

  • public



356
357
358
359
360
# File 'lib/hanami/slice.rb', line 356

def shutdown
  slices.each(&:shutdown)
  container.shutdown!
  self
end