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