https://bugzilla.wikimedia.org/show_bug.cgi?id=66870

            Bug ID: 66870
           Summary: Allow registration of API modules and special pages as
                    a factory function.
           Product: MediaWiki
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: API
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]
       Web browser: ---
   Mobile Platform: ---

Currently, API modules and special pages are registered using class names, and
instantiated with a fixed set of parameters to the constructor. This makes
proper dependency injection impossible. The solution is to allow factory
functions for registering such modules. That would give the implementor full
control over the constructor arguments.

The same approach is already used with the new ConfigFactory. ContentHandler
uses a hook to achieve the same.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to