I have class ModelsRepository:
class ModelsRepository extends EntityRepository {}
And service
container_data: class:
Extending Laurynas Mališauskas answer, to pass service to a constructor make your repository a service too and pass it with arguments:
models.repository: class: ModelsRepository arguments: ['@service_you_want_to_pass']