I created a custom application addon with React views. Everything is working as expected with the exception of the titlebar and banner. They appear to be ignoring the variables.neon settings. I'm thinking it has to do with my addon bootstrap file....
$container = Gdn::getContainer(); $container ->rule(Dispatcher::class) ->setShared(true) ->addCall('addRoute', ['route' => new Reference('@homepage'), 'homepage']) ->rule('@homepage') // Choose a name for our route instance. ->setClass(ResourceRoute::class) ->setConstructorArgs(['/homepage', '*\\%sHomepageController']) ->addCall('setMeta', ['CONTENT_TYPE', 'text/html; charset=utf-8']) ->addCall('setRootController', [HomepageController::class]);
Do I need to add something like this line that I see in the root bootstrap file?
->addCall('setThemeFeatureEnabled', [new Reference([ThemeFeatures::class, SearchRootController::ENABLE_FLAG])])
I haven't found any references to setThemeFeature or ThemeFeatures in the documentation.