Changeset View
Changeset View
Standalone View
Standalone View
branches/5.3.x/core/kernel/utility/unit_config_reader.php
Show First 20 Lines • Show All 472 Lines • ▼ Show 20 Line(s) | |||||
{ | { | ||||
$preloaded_prefix = $this->PreloadConfigFile($this->getPrefixFile($prefix)); | $preloaded_prefix = $this->PreloadConfigFile($this->getPrefixFile($prefix)); | ||||
if ( $this->finalStage ) { | if ( $this->finalStage ) { | ||||
// run prefix OnAfterConfigRead so all hooks to it can define their clones | // run prefix OnAfterConfigRead so all hooks to it can define their clones | ||||
$this->runAfterConfigRead($preloaded_prefix); | $this->runAfterConfigRead($preloaded_prefix); | ||||
} | } | ||||
$clones = $this->cloner->extrude($preloaded_prefix); | // Only use cached clones for calls in the middle of initialization (e.g. url parsing). | ||||
$clones = $this->cloner->extrude($preloaded_prefix, !$this->finalStage); | |||||
if ( $this->finalStage ) { | if ( $this->finalStage ) { | ||||
foreach ( $clones as $a_prefix ) { | foreach ( $clones as $a_prefix ) { | ||||
$this->runAfterConfigRead($a_prefix); | $this->runAfterConfigRead($a_prefix); | ||||
} | } | ||||
} | } | ||||
} | } | ||||
▲ Show 20 Lines • Show All 240 Lines • Show Last 20 Lines |