src/Variables/ReplacementStore.php
public function load($replacements)
    {
        if (is_array($replacements)) {
            $variables = $replacements;
        } elseif (is_file($replacements)) {
            $variables = $this->loadContent($replacements);
        } else {
            throw new \RuntimeException('Config replacements must be a array or a file');
        }

        $this->content = $variables;
    }
public function load($replacements)
    {
        if (is_array($replacements)) {
            $variables = $replacements;
        } elseif (is_file($replacements)) {
            $variables = $this->loadContent($replacements);
        } else {
            throw new \RuntimeException('Config replacements must be a array or a file');
        }

        $this->content = $variables;
    }
Creates the replacement variable content from a file or array

@param array $replacements The replacements

@throws \RuntimeException If variable data is not array or a file

@return  array The replacement variables