zendframework/zf2 — pull request #4104 by bakura10 (2013-03-24 11:04:56+00:00)
Title: Allow to change option creations for plugin manager

Currently, the plugin manager offer a way to give creation options. When using factories, those options are injected into the factory constructor. However, as the factory is instantiated only once, if the user get a new, non-shared instance to the plugin manager with new options, those new options are not updated because the factory still uses the ones that were given to him when he was created.

This is a bit hacky as the service manager was not really thought for creation options, but it works. Now, it will check the existence of setCreationOptions on any factory and call it with the options given.