fix: remove non-existent HVAC_Event_Cache dependency

Resolves fatal error: 'Class "HVAC_Event_Cache" not found'
- Removed strict typing for cache property
- Made cache initialization optional with placeholder for future implementation
- Prevents deployment blocking error

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
ben 2025-09-24 20:15:18 -03:00
parent bb908a24f3
commit e4b3940cce

View file

@ -107,11 +107,11 @@ class HVAC_Event_Form_Builder extends HVAC_Form_Builder {
]; ];
/** /**
* Cache instance for performance optimization * Cache instance for performance optimization (optional)
* *
* @var HVAC_Event_Cache * @var mixed
*/ */
private HVAC_Event_Cache $cache; private $cache = null;
/** /**
* Constructor * Constructor
@ -123,9 +123,11 @@ class HVAC_Event_Form_Builder extends HVAC_Form_Builder {
parent::__construct($nonce_action); parent::__construct($nonce_action);
$this->template_manager = HVAC_Event_Template_Manager::instance(); $this->template_manager = HVAC_Event_Template_Manager::instance();
$this->cache = HVAC_Event_Cache::instance();
$this->template_mode_enabled = $enable_templates; $this->template_mode_enabled = $enable_templates;
// Initialize cache if available (not implemented yet)
// $this->cache = class_exists('HVAC_Event_Cache') ? HVAC_Event_Cache::instance() : null;
$this->init_event_form_hooks(); $this->init_event_form_hooks();
} }