This repository was archived by the owner on Sep 16, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 50
ServiceCircularReferenceException with BlockVarnishCache #192
Copy link
Copy link
Open
Description
I'm trying to run Esi with CMF Block bundle, but I'm getting this exception:
ServiceCircularReferenceException: Circular reference detected for service "http_kernel", path: "http_kernel -> debug.event_dispatcher -> profiler -> sonata.block.templating.helper -> sonata.cache.manager -> cmf.block.cache.varnish -> fragment.handler -> fragment.renderer.inline".
in /var/www/app/bootstrap.php.cache line 1951
at Container->get('http_kernel') in /var/www/app/cache/dev/appDevDebugProjectContainer.php line 3666
at appDevDebugProjectContainer->getFragment_Renderer_InlineService() in /var/www/app/bootstrap.php.cache line 1974
at Container->get('fragment.renderer.inline') in /var/www/app/cache/dev/appDevDebugProjectContainer.php line 3602
at appDevDebugProjectContainer->getFragment_HandlerService() in /var/www/app/bootstrap.php.cache line 1974
at Container->get('fragment.handler') in /var/www/app/cache/dev/appDevDebugProjectContainer.php line 1106
at appDevDebugProjectContainer->getCmf_Block_Cache_VarnishService() in /var/www/app/bootstrap.php.cache line 1974
at Container->get('cmf.block.cache.varnish') in /var/www/app/cache/dev/appDevDebugProjectContainer.php line 6132
at appDevDebugProjectContainer->getSonata_Cache_ManagerService() in /var/www/app/bootstrap.php.cache line 1974
at Container->get('sonata.cache.manager', '2') in /var/www/app/cache/dev/appDevDebugProjectContainer.php line 14290
at appDevDebugProjectContainer->getSonata_Block_Templating_HelperService() in /var/www/app/bootstrap.php.cache line 1974
at Container->get('sonata.block.templating.helper') in /var/www/app/cache/dev/appDevDebugProjectContainer.php line 5414
at appDevDebugProjectContainer->getProfilerService() in /var/www/app/bootstrap.php.cache line 1974
at Container->get('profiler', '2') in /var/www/app/cache/dev/appDevDebugProjectContainer.php line 1680
at appDevDebugProjectContainer->getDebug_EventDispatcherService() in /var/www/app/bootstrap.php.cache line 1974
at Container->get('debug.event_dispatcher') in /var/www/app/cache/dev/appDevDebugProjectContainer.php line 3696
at appDevDebugProjectContainer->getHttpKernelService() in /var/www/app/bootstrap.php.cache line 1974
at Container->get('http_kernel') in /var/www/app/bootstrap.php.cache line 2251
at Kernel->getHttpKernel() in /var/www/app/bootstrap.php.cache line 2247
at Kernel->handle(object(Request)) in /var/www/web/app_dev.php line 42
cmf.block.cache.varnish
needs fragment.handler
.
The following call is done in a compiler pass on fragment.handler
:
$instance->addRenderer($this->get('fragment.renderer.inline'));
And fragment.renderer.inline
needs http_kernel
, so a circular exception is raised.
Any ideas on how to solve it?
Metadata
Metadata
Assignees
Labels
No labels