throw new BundleConfigNotFoundException($bundleConfigName,
$bundle->
getName());
} return $this->
read($configPath);
} /**
* This method is the main entry point to parse a xml file.
*/
protected function parseFile(\DOMDocument
$xml): array
{ return $this->
getCardDefinitions($xml);
} private function getCardDefinitions(\DOMDocument
$xml): array
{ $cardDefinitions =
[];
foreach ($xml->
getElementsByTagName('card'
) as $index =>
$element) { $cardDefinitions[] =
[ 'title' =>
$this->
getCardTitles($element),
'name' =>
$this->
getCardName($element),
'elements' =>
$this->
getElements($element),
];