Skip to content

Commit

Permalink
MAGETWO-85326: Tool for generating schema
Browse files Browse the repository at this point in the history
--add b2b schema
  • Loading branch information
Sergii Kovalenko committed Jan 4, 2018
1 parent 9c4aa72 commit 4a8e192
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions setup/src/Magento/Setup/Model/SchemaPersistor.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,19 +193,17 @@ private function processConstraints(array $tableData, \SimpleXMLElement $table)
*/
private function persistModule(\SimpleXMLElement $simpleXmlElementDom, $path)
{
if (strpos($path, 'magento2ee') !== false) {
$dom = new \DOMDocument('1.0');
$dom->preserveWhiteSpace = false;
$dom->formatOutput = true;
$dom->loadXML($simpleXmlElementDom->asXML());
file_put_contents(
$path,
str_replace(
' xmlns:xsi="xsi"', //reokace xmlns, as we do not need it for xsi namespace
'',
$dom->saveXML()
)
);
}
$dom = new \DOMDocument('1.0');
$dom->preserveWhiteSpace = false;
$dom->formatOutput = true;
$dom->loadXML($simpleXmlElementDom->asXML());
file_put_contents(
$path,
str_replace(
' xmlns:xsi="xsi"', //reokace xmlns, as we do not need it for xsi namespace
'',
$dom->saveXML()
)
);
}
}

0 comments on commit 4a8e192

Please sign in to comment.