You can inject by autowiring the repositories as it follows. Because
you can have multiple instances of the same interface, you must use
named aliases, so it means that you will have to couple both layers
public function __construct(
AppRepository $apisearchRepo1AppRepository,
UserRepository $apisearchRepo1UserRepository,
Repository $apisearchRepo1Index1Repository
)
Having an apisearch configuration like this one
You can inject by autowiring the repositories as it follows. Because you can have multiple instances of the same interface, you must use named aliases, so it means that you will have to couple both layers