module Ekylibre::PluginSystem::Sugar::Procedo

Syntactic sugar to ease the registration of Procedo procedures into the container

Public Instance Methods

register_procedures(container:) click to toggle source

@param [Corindon::DependencyInjection::Container] container

# File lib/ekylibre/plugin_system/sugar/procedo.rb, line 12
def register_procedures(container:)
  container.add_definition(
    self.class.make_definition('procedure_loader', ::Procedo::ProcedureLoader) { tag 'procedo.loader' },
    context: { root: engine.root }
  ) do |ctx|
    args root: value(ctx.root)
  end
end