JMSDebuggingBundle icon indicating copy to clipboard operation
JMSDebuggingBundle copied to clipboard

Warning: SplObjectStorage::contains() expects parameter 1 to be object, null given in ....JMS/DebuggingBundle/DependencyInjection/TraceableContainer.php line 71

Open jeremymoore opened this issue 12 years ago • 2 comments

After installing I immediately received this error on my project. After a little debugging I was able to trace this back to a Factory service. The factory service is defined as follows and the service id that returns null when $service = parent::get($id, $invalid); is called is some_factory_service. When JMSDebuggingBundle is not installed everything works fine, so I'm not sure if this is just a specific problem to factory services or something else.

Any ideas? Thanks!

  app.some_factory: 
    class: App\SomeBundle\Factory\SomeFactory
    arguments: 
      - "@some_service"
      - "@another_service"

  some_factory_service: 
    class: App\SomeBundle\Entity\SomeEntity
    factory_service: app.some_factory
    factory_method: get

jeremymoore avatar May 10 '13 20:05 jeremymoore

+1 Got this too!

If i remove JMSDebuggingBundle it's will be an Exeption:

You have requested a non-existent service "doc". Did you mean one of these: "doctrine", "monolog.logger.doctrine", "doctrine.dbal.logger.profiling.default", "doctrine.dbal.connection_factory", "doctrine.dbal.default_connection", "doctrine.orm.default_manager_configurator", "doctrine.orm.default_entity_manager", "sensio_framework_extra.converter.doctrine.orm"?

antonmedv avatar Jun 27 '13 17:06 antonmedv

+1 same :( but in my case it is service request

tiger-seo avatar Jul 05 '13 13:07 tiger-seo