From 3f684227d2fb6575d28df552832d277ffcd77d47 Mon Sep 17 00:00:00 2001 From: Evan Mullins Date: Tue, 27 Feb 2024 14:06:59 -0500 Subject: [PATCH] make sure container exists to fix CLI command issue --- bootstrap.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bootstrap.php b/bootstrap.php index e96a6b97e..4174f421b 100644 --- a/bootstrap.php +++ b/bootstrap.php @@ -76,8 +76,10 @@ function () { $marketplace_brand = 'bluehost-cloud'; } - $bluehost_module_container->set( 'cache_types', $cache_types ); - $bluehost_module_container->set( 'marketplace_brand', $marketplace_brand ); + if ( $bluehost_module_container ) { + $bluehost_module_container->set( 'cache_types', $cache_types ); + $bluehost_module_container->set( 'marketplace_brand', $marketplace_brand ); + } }, 11 );