omeka / omeka-s

Omeka S is a web publication system for universities, galleries, libraries, archives, and museums. It consists of a local network of independently curated exhibits sharing a collaboratively built pool of items, media, and their metadata.
GNU General Public License v3.0
401 stars 134 forks source link

Remove usages of getServiceLocator from controllers #666

Closed zerocrates closed 8 years ago

zerocrates commented 8 years ago

See also #554, these don't implement that interface but the usages of the method are also deprecated.

jimsafley commented 8 years ago

@zerocrates I looked through all the controllers and have some ideas about how to remove the service locator dependencies. I still need to address the dependencies in the existing controller plugins, but I'm saving that for later. How does this approach look to you?

Controller Factories

Some controllers use services that aren't (or shouldn't be) widely used. Create factories for the following controllers, injecting the listed dependencies:

Controller Plugins

Some services are (or could be) widely used by controllers. Create the following controller plugins (currently used by the listed controllers)

jimsafley commented 8 years ago

Controller Plugin Factories

Create factories for existing controller plugins, injecting the listed dependencies: