lib/gm/notepad/container.rb in gm-notepad-0.0.11 vs lib/gm/notepad/container.rb in gm-notepad-0.0.12
- old
+ new
@@ -4,27 +4,17 @@
module Notepad
# A container for dependency injection
class Container
extend Dry::Container::Mixin
- register "input_processor" do
- require 'gm/notepad/input_processor'
- InputProcessor.new
- end
-
register "config" do
require 'gm/notepad/config'
Config
end
register "table_registry" do
require 'gm/notepad/table_registry'
TableRegistry.build_and_load
- end
-
- register "renderer" do
- require 'gm/notepad/line_renderer'
- LineRenderer.new
end
register "input_handler_registry" do
# Order matters. The first registered will be the first to
# answer "Can you handle the input?"