public function up()
{
$this->searchAndReplace('NodeLabelGeneratorInterface', 'NodeDataLabelGeneratorInterface', array('php'));
$this->searchAndReplace('DefaultNodeLabelGenerator', 'FallbackNodeDataLabelGenerator', array('php'));
$this->processConfiguration('NodeTypes', function (&$configuration) {
foreach ($configuration as &$nodeType) {
if (isset($nodeType['nodeLabelGenerator'])) {
$nodeType['label'] = array('generatorClass' => $nodeType['nodeLabelGenerator']);
unset($nodeType['nodeLabelGenerator']);
}
}
}, true);
}