mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
FIX Use self::inst() for Injector/Config nest methods
This commit is contained in:
parent
8aad080516
commit
32cef975ef
@ -260,7 +260,7 @@ class Injector {
|
||||
* @return Injector Reference to new active Injector instance
|
||||
*/
|
||||
public static function nest() {
|
||||
$current = self::$instance;
|
||||
$current = self::inst();
|
||||
|
||||
$new = clone $current;
|
||||
$new->nestedFrom = $current;
|
||||
|
@ -223,7 +223,7 @@ class Config {
|
||||
* @return Config Reference to new active Config instance
|
||||
*/
|
||||
public static function nest() {
|
||||
$current = self::$instance;
|
||||
$current = self::inst();
|
||||
|
||||
$new = clone $current;
|
||||
$new->nestedFrom = $current;
|
||||
|
Loading…
x
Reference in New Issue
Block a user