| @@ 32-46 (lines=15) @@ | ||
| 29 | ||
| 30 | $namespaceParts = explode('\\', trim($namespace, "\\")); |
|
| 31 | ||
| 32 | if (count($namespaceParts) > 1) { |
|
| 33 | list($moduleName, $entityName) = $namespaceParts; |
|
| 34 | /** @var Config $config */ |
|
| 35 | $config = $container->get("$moduleName\\$entityName\\Infrastructure\\Config"); |
|
| 36 | $repository = $container->get("$moduleName\\$entityName\\Infrastructure\\Repository"); |
|
| 37 | $mapper = $container->get("$moduleName\\$entityName\\Infrastructure\\Mapper"); |
|
| 38 | $entityFactory = $container->get("$moduleName\\$entityName\\EntityFactory"); |
|
| 39 | } else { |
|
| 40 | $entityName = $namespaceParts[0]; |
|
| 41 | /** @var Config $config */ |
|
| 42 | $config = $container->get("$entityName\\Infrastructure\\Config"); |
|
| 43 | $repository = $container->get("$entityName\\Infrastructure\\Repository"); |
|
| 44 | $mapper = $container->get("$entityName\\Infrastructure\\Mapper"); |
|
| 45 | $entityFactory = $container->get("$entityName\\EntityFactory"); |
|
| 46 | } |
|
| 47 | ||
| 48 | $appConfig = $container->get('Config'); |
|
| 49 | ||
| @@ 31-45 (lines=15) @@ | ||
| 28 | ||
| 29 | $namespaceParts = explode('\\', trim($namespace, "\\")); |
|
| 30 | ||
| 31 | if (count($namespaceParts) > 1) { |
|
| 32 | list($moduleName, $entityName) = $namespaceParts; |
|
| 33 | /** @var Config $config */ |
|
| 34 | $config = $container->get("$moduleName\\$entityName\\Infrastructure\\Config"); |
|
| 35 | $criteriaFactory = $container->get("$moduleName\\$entityName\\Infrastructure\\CriteriaFactory"); |
|
| 36 | $mapper = $container->get("$moduleName\\$entityName\\Infrastructure\\Mapper"); |
|
| 37 | $entityFactory = $container->get("$moduleName\\$entityName\\EntityFactory"); |
|
| 38 | } else { |
|
| 39 | $entityName = $namespaceParts[0]; |
|
| 40 | /** @var Config $config */ |
|
| 41 | $config = $container->get("$entityName\\Infrastructure\\Config"); |
|
| 42 | $criteriaFactory = $container->get("$entityName\\Infrastructure\\CriteriaFactory"); |
|
| 43 | $mapper = $container->get("$entityName\\Infrastructure\\Mapper"); |
|
| 44 | $entityFactory = $container->get("$entityName\\EntityFactory"); |
|
| 45 | } |
|
| 46 | ||
| 47 | $features = []; |
|
| 48 | $tableSequence = $config->getSequence($entityName); |
|