Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-4972

Commands should be able to use @Inject

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • None
    • None
    • core
    • None

      Commands are currently instantiated with command.getClass().newInstance(); in info.magnolia.commands.CommandsManager#getCommand, thus can't benefit from DI. They would greatly benefit from it though.
      Note: perhaps we need to clarify a command instance lifecycle.

        Acceptance criteria

              Unassigned Unassigned
              gjoseph Magnolia International
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD