Skip to content

Commit a5cfcb3

Browse files
authored
Merge pull request #5 from booooza/task/readme-note
Task/readme note
2 parents f58c2e3 + 7c64f4a commit a5cfcb3

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

Classes/Preset.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public function load(): DataRecords
120120
[$className, $methodName] = explode('::', $this->options['dataProcessor'], 2);
121121
$records = \call_user_func([new $className(), $methodName], $records);
122122
if (!$records instanceof DataRecords) {
123-
throw new \RuntimeException(sprintf('The "dataPostprocessor" must return an instance of %s but returned a %s', DataRecords::class, TypeHandling::getTypeForValue($records)), 1563978776);
123+
throw new \RuntimeException(sprintf('The "dataProcessor" must return an instance of %s but returned a %s', DataRecords::class, TypeHandling::getTypeForValue($records)), 1563978776);
124124
}
125125
}
126126
return $records;

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,16 @@ Which should produce the output
100100

101101
```bash
102102
Validating Settings configuration on path Wwwision.ImportService
103-
103+
104104
All Valid!
105105
```
106+
107+
### Usage without Neos.ContentRepository package
108+
109+
If the Neos.ContentRepository package is not installed Flow's proxy class builder throws an `UnknownObjectException`.
110+
Disable autowiring in `Objects.yaml`:
111+
112+
```yaml
113+
Wwwision\ImportService\DataTarget\ContentRepositoryTarget:
114+
autowiring: false
115+
```

Resources/Private/Schema/Settings/Wwwision.ImportService.schema.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ properties:
1111
'options':
1212
type: dictionary
1313
properties:
14-
'skipNewRecords':
14+
'skipAddedRecords':
1515
type: boolean
1616
'skipRemovedRecords':
1717
type: boolean
18-
'dataPostProcessor':
18+
'dataProcessor':
1919
type: string
2020
pattern: '/^[a-zA-Z_\x80-\xff][a-zA-Z0-9_\x80-\xff\\]*::[a-zA-Z_\x7f-\xff]*$/u'
2121
'source':

0 commit comments

Comments
 (0)