foreach ($sortedData as $entityName =>
$definitions) { // if extended -> set up
if (isset($definitions['extended'
])) { $serviceId =
$definitions['extended'
];
$entityNameMap[$entityName] =
$serviceId;
if (isset($definitions['alias'
])) { $entityNameMap[$definitions['alias'
]] =
$serviceId;
} $this->
setUpEntityDefinitionService($container,
$serviceId);
$container->
setAlias(self::PREFIX .
$serviceId,
new Alias($serviceId, true
));
} // if both mask base with extended extended as base
if (isset($definitions['extended'
],
$definitions['base'
])) { $container->
setAlias(self::PREFIX .
$definitions['base'
],
new Alias($definitions['extended'
], true
));
} // if base only clone definition
if (!
isset($definitions['extended'
]) &&
isset($definitions['base'
])) { $service =
$container->
getDefinition($definitions['base'
]);