Details
-
Bug
-
Resolution: Done
-
Medium
-
4.2.1, 3.3.26
-
Ibexa Open Source
Description
Steps to reproduce
- Prepare Ibexa Open Source instance v3.3 or higher
- Remove Symfony cache rm -rf var/cache/*/
- Try to build Container by clearing cache php bin/console cache:clear
Actual result
Observe 50 lines of WARNING log, like
WARNING [app] Failed to generate ConfigBuilder for extension Symfony\Bundle\FrameworkBundle\DependencyInjection\FrameworkExtension. ["exception" => Symfony\Component\DependencyInjection\Exception\EnvNotFoundException^ { …},"extensionClass" => "Symfony\Bundle\FrameworkBundle\DependencyInjection\FrameworkExtension"]
Expected result
Cache is cleared and Container is built without warnings
Root cause
\EzSystems\EzPlatformCoreBundle\DependencyInjection\EzPlatformCoreExtension::configureGenericSetup
tries to
$container->setParameter('siso_search.solr.host', '%env(SISO_SEARCH_SOLR_HOST)%'); $container->setParameter('siso_search.solr.port', '%env(SISO_SEARCH_SOLR_PORT)%'); $container->setParameter('siso_search.solr.core', '%env(SISO_SEARCH_SOLR_CORE)%'); $container->setParameter('siso_search.solr.path', '%env(SISO_SEARCH_SOLR_PATH)%');
which is part of Ibexa DXP configuration and should be delegated to SisoSearchBundle (IbexaCommerceSearchBundle)