main
1class EventsRegistration
2  extend Nasty::Command
3
4  def self.run(container)
5    event_aggregator = container.resolve(:event_aggregator)
6    event_aggregator.subscribe(:halt, ShutdownCommand.new)
7    event_aggregator.subscribe(:clicked, container.resolve(:stock_query))
8  end
9end