Skip to content

Commit 7cb10bc

Browse files
Merge pull request #52 from gerhard-boden/apply-core-migrations
TASK: Apply core migrations
2 parents 0573327 + c3883c9 commit 7cb10bc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+170
-110
lines changed
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@
1515
use Flowpack\ElasticSearch\Domain\Model\Client;
1616
use Flowpack\ElasticSearch\Domain\Model\Index;
1717
use Flowpack\ElasticSearch\Indexer\Object\ObjectIndexer;
18-
use TYPO3\Flow\Annotations as Flow;
19-
use TYPO3\Flow\Error\Error;
20-
use TYPO3\Flow\Error\Result as ErrorResult;
21-
use TYPO3\Flow\Exception;
18+
use Neos\Flow\Annotations as Flow;
19+
use Neos\Error\Messages\Error;
20+
use Neos\Error\Messages\Result as ErrorResult;
21+
use Neos\Flow\Exception;
2222

2323
/**
2424
* Provides CLI features for index handling
2525
*
2626
* @Flow\Scope("singleton")
2727
*/
28-
class IndexCommandController extends \TYPO3\Flow\Cli\CommandController
28+
class IndexCommandController extends \Neos\Flow\Cli\CommandController
2929
{
3030
/**
3131
* @Flow\Inject
@@ -41,7 +41,7 @@ class IndexCommandController extends \TYPO3\Flow\Cli\CommandController
4141

4242
/**
4343
* @Flow\Inject
44-
* @var \TYPO3\Flow\Persistence\PersistenceManagerInterface
44+
* @var \Neos\Flow\Persistence\PersistenceManagerInterface
4545
*/
4646
protected $persistenceManager;
4747

@@ -251,7 +251,7 @@ public function statusCommand($object = null, $conductUpdate = false, $clientNam
251251
if ($result->hasErrors()) {
252252
$this->outputLine();
253253
$this->outputLine('The following errors occurred:');
254-
/** @var $error \TYPO3\Flow\Error\Error */
254+
/** @var $error \Neos\Error\Messages\Error */
255255
foreach ($result->getFlattenedErrors() as $className => $errors) {
256256
foreach ($errors as $error) {
257257
$this->outputLine();
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
*/
1313

1414
use Flowpack\ElasticSearch\Mapping\MappingCollection;
15-
use TYPO3\Flow\Annotations as Flow;
15+
use Neos\Flow\Annotations as Flow;
1616

1717
/**
1818
* Provides CLI features for mapping handling
1919
*
2020
* @Flow\Scope("singleton")
2121
*/
22-
class MappingCommandController extends \TYPO3\Flow\Cli\CommandController
22+
class MappingCommandController extends \Neos\Flow\Cli\CommandController
2323
{
2424
/**
2525
* @Flow\Inject
@@ -66,8 +66,8 @@ public function showStatusCommand($clientName = null)
6666
$propertiesSet = $mappingSet['properties'];
6767
$this->outputFormatted('type %s:', array($this->markupDiffValue(isset($entityMappingCollection[$indexName][$typeName]) ? $typeName : null, isset($backendMappingCollection[$indexName][$typeName]) ? $typeName : null)), 4);
6868
foreach ($propertiesSet as $propertyName => $properties) {
69-
$entityProperties = \TYPO3\Flow\Utility\Arrays::getValueByPath($entityMappingCollection, array($indexName, $typeName, 'properties', $propertyName));
70-
$backendProperties = \TYPO3\Flow\Utility\Arrays::getValueByPath($backendMappingCollection, array($indexName, $typeName, 'properties', $propertyName));
69+
$entityProperties = \Neos\Utility\Arrays::getValueByPath($entityMappingCollection, array($indexName, $typeName, 'properties', $propertyName));
70+
$backendProperties = \Neos\Utility\Arrays::getValueByPath($backendMappingCollection, array($indexName, $typeName, 'properties', $propertyName));
7171

7272
$this->outputFormatted('property %s:', array($this->markupDiffValue($entityProperties ? $propertyName : null, $backendProperties ? $propertyName : null)), 8);
7373
foreach ($properties as $key => $value) {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* source code.
1212
*/
1313

14-
use TYPO3\Flow\Error\Result;
14+
use Neos\Error\Messages\Result;
1515

1616
/**
1717
* Signals a mismatch between the

Classes/Flowpack/ElasticSearch/Domain/Factory/ClientFactory.php renamed to Classes/Domain/Factory/ClientFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* source code.
1212
*/
1313

14-
use TYPO3\Flow\Annotations as Flow;
14+
use Neos\Flow\Annotations as Flow;
1515

1616
/**
1717
* Client factory
@@ -73,7 +73,7 @@ protected function buildClientConfigurations(array $clientsSettings)
7373
$setterMethodName = 'set' . ucfirst($settingKey);
7474
try {
7575
call_user_func(array($configuration, $setterMethodName), $settingValue);
76-
} catch (\TYPO3\Flow\Error\Exception $exception) {
76+
} catch (\Neos\Flow\Error\Exception $exception) {
7777
$exceptionMessage = 'Setting key "' . $settingKey . '" as client configuration value is not allowed. Refer to the Settings.yaml.example for the supported keys.';
7878
throw new \Flowpack\ElasticSearch\Exception($exceptionMessage, 1338886877, $exception);
7979
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313

1414
use Doctrine\ORM\Mapping as ORM;
1515
use Flowpack\ElasticSearch\Domain\Model;
16-
use TYPO3\Flow\Annotations as Flow;
17-
use TYPO3\Flow\Error\Error;
18-
use TYPO3\Flow\Error\Result as ErrorResult;
16+
use Neos\Flow\Annotations as Flow;
17+
use Neos\Error\Messages\Error;
18+
use Neos\Error\Messages\Result as ErrorResult;
1919

2020
/**
2121
* Reconstitute a Document from the ElasticSearch index.

Classes/Flowpack/ElasticSearch/Domain/Model/AbstractType.php renamed to Classes/Domain/Model/AbstractType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* source code.
1212
*/
1313

14-
use TYPO3\Flow\Annotations as Flow;
14+
use Neos\Flow\Annotations as Flow;
1515

1616
/**
1717
* An abstract document type. Implement your own or use the GenericType provided with this package.

Classes/Flowpack/ElasticSearch/Domain/Model/Client.php renamed to Classes/Domain/Model/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* source code.
1212
*/
1313

14-
use TYPO3\Flow\Annotations as Flow;
14+
use Neos\Flow\Annotations as Flow;
1515

1616
/**
1717
* A Client representation

0 commit comments

Comments
 (0)