sonata-project/SonataIntlBundle — Issue #14: InactiveScopeException when running cache:warmup
Author: snc
Created: 2012-01-13 19:24:36+00:00
State: open

When running `php app/console cache:warmup --env=prod -v` the following exception is thrown:

```
[Symfony\Component\DependencyInjection\Exception\InactiveScopeException]
You cannot create a service ("request") of an inactive scope ("request").
```

```
Exception trace:
() at /var/www/dev/webs/project/app/cache/prod/appProdDebugProjectContainer.php:1412
appProdDebugProjectContainer->getRequestService() at /var/www/dev/webs/project/app/bootstrap.php.cache:194
Symfony\Component\DependencyInjection\Container->get() at /var/www/dev/webs/project/app/cache/prod/appProdDebugProjectContainer.php:2590
appProdDebugProjectContainer->getSonata_Intl_LocaleDetector_RequestService() at /var/www/dev/webs/project/app/bootstrap.php.cache:194
Symfony\Component\DependencyInjection\Container->get() at /var/www/dev/webs/project/app/cache/prod/appProdDebugProjectContainer.php:2616
appProdDebugProjectContainer->getSonata_Intl_Templating_Helper_LocaleService() at /var/www/dev/webs/project/app/bootstrap.php.cache:194
Symfony\Component\DependencyInjection\Container->get() at /var/www/dev/webs/project/app/cache/prod/appProdDebugProjectContainer.php:3360
appProdDebugProjectContainer->getTwigService() at /var/www/dev/webs/project/app/bootstrap.php.cache:194
Symfony\Component\DependencyInjection\Container->get() at /var/www/dev/webs/project/app/cache/prod/appProdDebugProjectContainer.php:61
appProdDebugProjectContainer->getAssetic_AssetManagerService() at /var/www/dev/webs/project/app/bootstrap.php.cache:194
Symfony\Component\DependencyInjection\Container->get() at /var/www/dev/webs/project/vendor/bundles/Symfony/Bundle/AsseticBundle/CacheWarmer/AssetManagerCacheWarmer.php:33
Symfony\Bundle\AsseticBundle\CacheWarmer\AssetManagerCacheWarmer->warmUp() at /var/www/dev/webs/project/vendor/symfony/src/Symfony/Component/HttpKernel/CacheWarmer/CacheWarmerAggregate.php:47
Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate->warmUp() at /var/www/dev/webs/project/vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Command/CacheWarmupCommand.php:50
Symfony\Bundle\FrameworkBundle\Command\CacheWarmupCommand->execute() at /var/www/dev/webs/project/vendor/symfony/src/Symfony/Component/Console/Command/Command.php:237
Symfony\Component\Console\Command\Command->run() at /var/www/dev/webs/project/vendor/symfony/src/Symfony/Component/Console/Application.php:193
Symfony\Component\Console\Application->doRun() at /var/www/dev/webs/project/vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:75
Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at /var/www/dev/webs/project/vendor/symfony/src/Symfony/Component/Console/Application.php:106
Symfony\Component\Console\Application->run() at /var/www/dev/webs/project/app/console:22
```