48 if (empty($configFiles)) {
49 throw new \InvalidArgumentException(
'There must be at least one configuration file specified.');
77 abstract protected function _extractData(\DOMDocument $dom);
86 protected function _merge($configFiles)
88 foreach ($configFiles as $key =>
$content) {
91 }
catch (\
Magento\Framework\Config\
Dom\ValidationException $e) {
92 throw new \Magento\Framework\Exception\LocalizedException(
94 'The XML in file "%1" is invalid:' .
"\n%2\nVerify the XML and try again.",
95 [$key, $e->getMessage()]
116 $phrase = (
null === $file)
118 :
new \
Magento\Framework\
Phrase(
'Invalid XML-file: %1%2%3', [$file, PHP_EOL, implode(
"\n",
$errors)]);
120 throw new \Magento\Framework\Exception\LocalizedException($phrase);
133 if (
null === $this->_domConfig) {
134 $this->_domConfig = $this->domFactory->createDom(
_performValidate($file=null)
_extractData(\DOMDocument $dom)
__construct( $configFiles, \Magento\Framework\Config\DomFactory $domFactory)