Is there a good way for a plugin to make other plugins aware of itself at configure time?
I've tried offering a static method in the pkContextCMSTools:: class to register an administration button (to manage images for the media plugin, etc), and calling that method from the PluginConfiguration::initialize method of each plugin that needs such a button. This works really badly because autoloading is not yet available for pkContextCMSPlugin at that point depending on the order of plugins. Worse, it'll break attempts to do 'symfony plugin:install' for pkContextCMSPlugin if you have already installed a plugin that makes one of these calls first. So that's no good. One obvious possibility: global $pkContextCMSButtons; $pkContextCMSButtons['mybutton'] = 'whatever'; But before I introduce global variables into a Symfony plugin, I'm wondering if anyone sees a better solution. I suppose anything else I do will just be a global variable by another name... -- Tom Boutell P'unk Avenue 215 755 1330 punkave.com window.punkave.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en -~----------~----~----~----~------~----~------~--~---
