SimpleFileLoader::makeFileVariablesGlobal PHP Method

makeFileVariablesGlobal() protected method

Imports new variables into the global namespace.
protected makeFileVariablesGlobal ( hash $existing, hash $new )
$existing hash Variables before the file was loaded.
$new hash Variables after the file was loaded.
    protected function makeFileVariablesGlobal($existing, $new)
    {
        $globals = array_diff(array_keys($new), array_keys($existing));
        foreach ($globals as $global) {
            $GLOBALS[$global] = $new[$global];
        }
    }