@anonymous-piwik-user opened this Issue on June 27th 2011

In our company we have global config-files, which are different on every developer-vm. therefor it would be nice, if there would be an
Zend_Registry::isRegistered('conf') in Piwik::createConfigObject before setting it. No great deal, but big effect ;)
Keywords: zend_config, isregistered

@anonymous-piwik-user commented on June 27th 2011

Actually I ment Zend_Registry::isRegistered('config')

@robocoder commented on June 27th 2011 Contributor

createConfigObject() is called before plugins are loaded. How do you load your config?

@anonymous-piwik-user commented on June 29th 2011

Actually at the moment I'm loading the config how piwik it does by default. Therefor I think it would be best to check if 'config' is already in Zend_Registry, and, if so, not loading the piwik-config....

@mattab commented on June 29th 2011 Owner

Please submit a patch for this feature to be considered :) we will reopen when a patch submitted, thanks!

@robocoder commented on June 30th 2011 Contributor

Like I said, we load the config before plugins are loaded. Your plugin can certainly override it, but it looks like there's a chicken-and-egg problem adding a hook in core.

@anonymous-piwik-user commented on June 30th 2011

Well the problem is, that no plugin is loaded, if the database-configuration is not correct. Actually every developer has it's own mashine including mysql. Therefor it's necessary either to make plugins loaded before any database-connection is established, or, as I said, make it possible to set 'config'-registry-entry e.g. in bootstrap.php, which I can use since I saw it in index.php.

This Issue was closed on June 30th 2011
Powered by GitHub Issue Mirror