|
@@ 309-321 (lines=13) @@
|
| 306 |
|
$formatDiscoverLocalFileStorageFactoryDef, |
| 307 |
|
)); |
| 308 |
|
break; |
| 309 |
|
case 'dbal': |
| 310 |
|
$listResolverDef = new Definition(StringOrFileList::class, array($config['queries'])); |
| 311 |
|
if (!isset($config['connection_factory'])) { |
| 312 |
|
$connectionFactoryDef = new Definition(DefaultConnectionFactory::class, array(array('default' => new Reference('doctrine.dbal.default_connection')))); |
| 313 |
|
} else { |
| 314 |
|
$connectionFactoryDef = new Reference($config['connection_factory']); |
| 315 |
|
} |
| 316 |
|
|
| 317 |
|
$spDef = new Definition('Mathielen\ImportEngine\Storage\Provider\DbalStorageProvider', array( |
| 318 |
|
$connectionFactoryDef, |
| 319 |
|
$listResolverDef, |
| 320 |
|
)); |
| 321 |
|
break; |
| 322 |
|
case 'doctrine': |
| 323 |
|
$listResolverDef = new Definition(StringOrFileList::class, array($config['queries'])); |
| 324 |
|
if (!isset($config['connection_factory'])) { |
|
@@ 322-334 (lines=13) @@
|
| 319 |
|
$listResolverDef, |
| 320 |
|
)); |
| 321 |
|
break; |
| 322 |
|
case 'doctrine': |
| 323 |
|
$listResolverDef = new Definition(StringOrFileList::class, array($config['queries'])); |
| 324 |
|
if (!isset($config['connection_factory'])) { |
| 325 |
|
$connectionFactoryDef = new Definition(DefaultConnectionFactory::class, array(array('default' => new Reference('doctrine.orm.entity_manager')))); |
| 326 |
|
} else { |
| 327 |
|
$connectionFactoryDef = new Reference($config['connection_factory']); |
| 328 |
|
} |
| 329 |
|
|
| 330 |
|
$spDef = new Definition('Mathielen\ImportEngine\Storage\Provider\DoctrineQueryStorageProvider', array( |
| 331 |
|
$connectionFactoryDef, |
| 332 |
|
$listResolverDef, |
| 333 |
|
)); |
| 334 |
|
break; |
| 335 |
|
case 'service': |
| 336 |
|
$spDef = new Definition('Mathielen\ImportEngine\Storage\Provider\ServiceStorageProvider', array( |
| 337 |
|
new Reference('service_container'), |