Details
-
Bug
-
Resolution: Fixed
-
Medium
-
None
-
None
-
None
Description
Due to missing lazy loading of ezpublish_legacy.legacy_cache_purger, legacy kernel (which is a dependency of said service) is being built with web handler instead of the CLI one, before LegacyKernelListener::onConsoleCommand has a chance to run and set the CLI legacy handler.
Due to this, when running php ezpublish/console cache:clear, there's a following exception:
eddie@abyss: ~/www/ezplatform $ php ezpublish/console cache:clear
Clearing the cache for the dev environment with debug true
[Symfony\Component\DependencyInjection\Exception\InactiveScopeException]
You cannot create a service ("request") of an inactive scope ("request").
cache:clear [--no-warmup] [--no-optional-warmers]
eddie@abyss: ~/www/ezplatform $