Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TASK: Add core migration #19

Merged
merged 5 commits into from Feb 8, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions .styleci.yml
@@ -0,0 +1,6 @@
preset: psr2

finder:
path:
- "Classes"
- "Tests"
36 changes: 36 additions & 0 deletions Migrations/Code/Version20161210231100.php
@@ -0,0 +1,36 @@
<?php
namespace Neos\Flow\Core\Migrations;

/*
* This file is part of the Neos.ContentRepository.Search package.
*
* (c) Contributors of the Neos Project - www.neos.io
*
* This package is Open Source Software. For the full copyright and license
* information, please view the LICENSE file which was distributed with this
* source code.
*/

/**
* Adjusts code to package renaming from "TYPO3.TYPO3CR.Search" to "Neos.ContentRepository.Search"
*/
class Version20161210231100 extends AbstractMigration
{

public function getIdentifier()
{
return 'Neos.ContentRepository.Search-20161210231100';
}

/**
* @return void
*/
public function up()
{
$this->searchAndReplace('TYPO3\TYPO3CR\Search', 'Neos\ContentRepository\Search');
$this->searchAndReplace('TYPO3.TYPO3CR.Search', 'Neos.ContentRepository.Search');
$this->searchAndReplace('typo3/typo3cr-search', 'neos/content-repository-search');

$this->moveSettingsPaths('TYPO3.TYPO3CR.Search', 'Neos.ContentRepository.Search');
}
}
6 changes: 3 additions & 3 deletions composer.json
Expand Up @@ -3,8 +3,8 @@
"type": "neos-package",
"description": "Common code and interface for a Neos CR search implementation",
"require": {
"neos/flow": "~4.0 || dev-master",
"neos/content-repository": "*"
"neos/flow": "~4.0",
"neos/content-repository": "~3.0"
},
"replace": {
"typo3/typo3cr-search": "self.version"
Expand Down Expand Up @@ -74,4 +74,4 @@
"Neos.Flow-20161125124112"
]
}
}
}