silverstripe-framework/core
Hamish Friedlander fa37c448a5 API Reverse config extra statics control flow
Config system used to provide an add_static_source method, which was intended for
use by Extensions to add statics. But extensions for a class arent initialised
until at least one instance of that class is created, so before that the
Config system didnt include values from extensions

This patch reverses the control flow, so that the Config system explictly asks
each Object for its additional config sources via the new method
get_extra_config_sources. This method returns an array that can contain
string names of classes and also raw associative arrays.

The developer visible change is that Extension#add_to_class has been
deprecated. Instead there is a new method, get_extra_config, which has
the same method signature but needs to guarantee that it doesnt
cause side effects. Additionally there is no need to call
parent::get_extra_config - this is handled automatically.
2012-08-23 09:29:13 +12:00
..
manifest Revert "MINOR Updated sfYaml parser dependency to 2.0.14, use it in ConfigManifest and i18nTextCollector" 2012-06-21 21:11:48 +02:00
ArrayLib.php MINOR Update @package values to match renaming sapphire 2012-04-15 10:50:19 +12:00
ClassInfo.php API Reverse config extra statics control flow 2012-08-23 09:29:13 +12:00
Config.php API Reverse config extra statics control flow 2012-08-23 09:29:13 +12:00
Convert.php MINOR Update @package values to match renaming sapphire 2012-04-15 10:50:19 +12:00
Core.php BUG: Fix increase_memory_limit_to() to reduce installation errors. 2012-06-26 12:39:50 +12:00
DAG.php MINOR Add newline to end of files without one 2012-04-15 10:50:19 +12:00
Diff.php MINOR Update @package values to match renaming sapphire 2012-04-15 10:50:19 +12:00
Extension.php API Reverse config extra statics control flow 2012-08-23 09:29:13 +12:00
HTMLCleaner.php MINOR Update @package values to match renaming sapphire 2012-04-15 10:50:19 +12:00
Object.php API Reverse config extra statics control flow 2012-08-23 09:29:13 +12:00
PaginatedList.php BUGFIX: PaginatedList::getIterator() trims the original list to the page lenght when the source list is DataList 2012-07-15 01:02:49 +12:00