public function up()
{
$this->searchAndReplace('TYPO3.TYPO3CR:Folder', 'unstructured', array('php', 'ts2'));
$this->processConfiguration('NodeTypes', function (&$configuration) {
foreach ($configuration as &$nodeType) {
if (isset($nodeType['superTypes'])) {
foreach ($nodeType['superTypes'] as &$superType) {
$superType = str_replace('TYPO3.TYPO3CR:Folder', 'unstructured', $superType);
}
}
if (isset($nodeType['childNodes'])) {
foreach ($nodeType['childNodes'] as &$type) {
$type = str_replace('TYPO3.TYPO3CR:Folder', 'unstructured', $type);
}
}
}
}, true);
}