diff --git a/.env.dist b/.env.dist index 88b6fe0bd..7d848fabb 100755 --- a/.env.dist +++ b/.env.dist @@ -5,7 +5,7 @@ APP_DEBUG=true APP_URL=http://localhost # RSX Application Mode: development, debug, or production -RSX_MODE=development +RSX_MODE=production LOG_CHANNEL=stack LOG_DEPRECATIONS_CHANNEL=null diff --git a/app/RSpade/Core/Bundle/BundleCompiler.php b/app/RSpade/Core/Bundle/BundleCompiler.php index a8592a444..9ba4ded32 100644 --- a/app/RSpade/Core/Bundle/BundleCompiler.php +++ b/app/RSpade/Core/Bundle/BundleCompiler.php @@ -535,16 +535,19 @@ class BundleCompiler } // Handle class name includes (could be Asset Bundles with CDN assets) - // Check manifest data directly since php_find_class throws if not found - if (is_string($include) && isset(Manifest::$data['data']['php_classes'][$include])) { - if (Manifest::php_is_subclass_of($include, 'Rsx_Asset_Bundle_Abstract')) { - $asset_def = $include::define(); - if (!empty($asset_def['cdn_assets'])) { - if (!empty($asset_def['cdn_assets']['js'])) { - $this->cdn_assets['js'] = array_merge($this->cdn_assets['js'], $asset_def['cdn_assets']['js']); - } - if (!empty($asset_def['cdn_assets']['css'])) { - $this->cdn_assets['css'] = array_merge($this->cdn_assets['css'], $asset_def['cdn_assets']['css']); + // Normalize FQCN to simple name for manifest lookup (manifest stores simple names) + if (is_string($include)) { + $simple_name = Manifest::_normalize_class_name($include); + if (isset(Manifest::$data['data']['php_classes'][$simple_name])) { + if (Manifest::php_is_subclass_of($simple_name, 'Rsx_Asset_Bundle_Abstract')) { + $asset_def = $include::define(); + if (!empty($asset_def['cdn_assets'])) { + if (!empty($asset_def['cdn_assets']['js'])) { + $this->cdn_assets['js'] = array_merge($this->cdn_assets['js'], $asset_def['cdn_assets']['js']); + } + if (!empty($asset_def['cdn_assets']['css'])) { + $this->cdn_assets['css'] = array_merge($this->cdn_assets['css'], $asset_def['cdn_assets']['css']); + } } } }