I just upgraded the project to Symfony 2.4.2, starting with 2.2.2. After updating, the profiler raises an exception, which is displayed in the line at the bottom of each page:
'Symfony \ Component \ DependencyInjection \ Exception \ InactiveScopeException' with the message 'You cannot create a service ("request") of the inactive area ("request").
( ! ) Fatal error: Uncaught exception 'Symfony\Component\DependencyInjection\Exception\InactiveScopeException' with message 'You cannot create a service ("request") of an inactive scope ("request").' in /var/www/pm/app/cache/dev/appDevDebugProjectContainer.php on line 3776 ( ! ) Symfony\Component\DependencyInjection\Exception\InactiveScopeException: You cannot create a service ("request") of an inactive scope ("request"). in /var/www/pm/app/cache/dev/appDevDebugProjectContainer.php on line 3776 Call Stack
It seems that an error occurs when the profiler listens for kernel termination, but I could not solve the problem.
What's wrong?
Edit
An example of a service that has a request:
services: property.value.form.resolver.number: class: Frisbee\ProductBundle\Form\Resolver\PropertyTypeFormResolverNumber arguments: [@form.factory, @request] scope: request
php symfony
phidah
source share