Skip to content

Commit d7027c8

Browse files
committed
Update readme.md
1 parent 1307d38 commit d7027c8

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

readme.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,18 @@ Full example:
4545
mathielen_import_engine:
4646
#configure storageproviders, that are used in all importers
4747
storageprovider:
48-
default:
49-
type: upload #[upload, service, array, doctrine, file]
48+
upload:
49+
type: upload
5050
path: "%kernel.root_dir%/Resources/import"
51-
51+
local:
52+
type: directory
53+
uri: /tmp/somedir
54+
doctrine:
55+
type: doctrine
56+
queries:
57+
- SELECT id FROM Acme\DemoBundle\Entity\Person P WHERE P.age > 10
58+
- Acme\DemoBundle\Entity\ImportData
59+
5260
#configure your Importers
5361
importers:
5462
your_importer_name:
@@ -80,7 +88,7 @@ mathielen_import_engine:
8088

8189
#target of import
8290
target:
83-
type: service #[service, array, doctrine, file]
91+
type: service #[service, doctrine, file]
8492
service: import_service #service name in DIC
8593
method: processImportRow #method to invoke on service
8694
```
@@ -138,5 +146,4 @@ class DemoController extends Controller
138146

139147
Todos
140148
------------
141-
* Constraints resolution (name to class)
142149
* Xml Configuration with validation constraint lists doesnt work

0 commit comments

Comments
 (0)