mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX: Ensure that extensio arugments are passed when temporarily instantiating for setting up statics.
This commit is contained in:
parent
c41ff29d70
commit
1aefc0aa94
@ -38,7 +38,7 @@ abstract class DataExtension extends Extension {
|
|||||||
$extraStaticsMethod = 'extraStatics';
|
$extraStaticsMethod = 'extraStatics';
|
||||||
}
|
}
|
||||||
|
|
||||||
$statics = singleton($extensionClass)->$extraStaticsMethod($class, $extensionClass);
|
$statics = Injector::inst()->get($extensionClass, true, $args)->$extraStaticsMethod($class, $extensionClass);
|
||||||
|
|
||||||
if ($statics) {
|
if ($statics) {
|
||||||
Deprecation::notice('3.1.0', "$extraStaticsMethod deprecated. Just define statics on your extension, or use add_to_class");
|
Deprecation::notice('3.1.0', "$extraStaticsMethod deprecated. Just define statics on your extension, or use add_to_class");
|
||||||
|
Loading…
Reference in New Issue
Block a user