$connection) { $connectionNames[] = $name; $entityPaths['doctrine.entity-paths.' . $name] = $connection['entity-paths'] instanceof EntryReference ? $connection['entity-paths'] : add($connection['entity-paths'] ?? []); $entityPaths['doctrine.connection.' . $name] = $connection['connection'] instanceof EntryReference ? $connection['connection'] : add($connection['connection'] ?? []); } return array_merge( [ 'doctrine.connections' => add($connectionNames), ], $entityPaths, $connectionInfos ); } }