JMSDebuggingBundle
JMSDebuggingBundle copied to clipboard
Warning: SplObjectStorage::contains() expects parameter 1 to be object, null given in ....JMS/DebuggingBundle/DependencyInjection/TraceableContainer.php line 71
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
+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"?
+1 same :( but in my case it is service request