From 3c86501c8e9c79a80ea29feab3906a2e4a036541 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Sat, 5 Sep 2020 12:50:14 +1000 Subject: [PATCH] [REF] Ensure that all bundle container services are public for Symfony v4 --- Civi/Core/Container.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Civi/Core/Container.php b/Civi/Core/Container.php index a0bf207032..d898c61fde 100644 --- a/Civi/Core/Container.php +++ b/Civi/Core/Container.php @@ -207,16 +207,16 @@ class Container { ))->setPublic(TRUE); $container->setDefinition('bundle.bootstrap3', new Definition('CRM_Core_Resources_Bundle', ['bootstrap3'])) - ->setFactory('CRM_Core_Resources_Common::createBootstrap3Bundle'); + ->setFactory('CRM_Core_Resources_Common::createBootstrap3Bundle')->setPublic(TRUE); $container->setDefinition('bundle.coreStyles', new Definition('CRM_Core_Resources_Bundle', ['coreStyles'])) - ->setFactory('CRM_Core_Resources_Common::createStyleBundle'); + ->setFactory('CRM_Core_Resources_Common::createStyleBundle')->setPublic(TRUE); $container->setDefinition('bundle.coreResources', new Definition('CRM_Core_Resources_Bundle', ['coreResources'])) - ->setFactory('CRM_Core_Resources_Common::createFullBundle'); + ->setFactory('CRM_Core_Resources_Common::createFullBundle')->setPublic(TRUE); $container->setDefinition('pear_mail', new Definition('Mail')) - ->setFactory('CRM_Utils_Mail::createMailer'); + ->setFactory('CRM_Utils_Mail::createMailer')->setPublic(TRUE); if (empty(\Civi::$statics[__CLASS__]['boot'])) { throw new \RuntimeException('Cannot initialize container. Boot services are undefined.'); -- 2.25.1