nelmio/NelmioSolariumBundle

PHPUnit errors in SF5 when injecting service

javisasan opened this issue · 1 comments

Hi,

I'm having some issues when using this bundle as a service in SF5. Service is configured as follows:

image

I need to use ServiceRegistry, so in my class I inject it:

image

But when passing tests, I'm having this output:

image

As you can see, tests are passing OK, but a lot of warnings are appearing.

Maybe I'm not decraring properly the service?

By the way, my yaml config file:

nelmio_solarium:
    endpoints:
        foo:
            scheme: http
            host: '%env(resolve:SOLR_HOST)%'
            port: 8983
            path: /
            core: Foo_all
        bar:
            scheme: http
            host: '%env(resolve:SOLR_HOST)%'
            port: 8983
            path: /
            core: Bar_all
    clients:
        foo:
            endpoints: [foo]
        bar:
            endpoints: [bar]

Thanks in advance and hope you're allright,

Javi

Which version of this bundle did you use? It should be resolved on master.