What's Changed
Bug Fixes
- Fix ApplicationProxy constructor initialization order - The
$this->nameproperty was being set after callingparent::__construct(), which caused the parent constructor to always use the default value'app'instead of the passed$nameparameter. This fix ensures the correct Firebase project configuration is loaded when usingApplicationProxywith a custom project name.
Details
The parent Application constructor uses $this->name to build the configuration path (firebase.projects.{$name}). Previously, the initialization order was:
// Before (incorrect)
parent::__construct($container); // Uses $this->name = 'app'
$this->name = $name; // Too late!Now fixed to:
// After (correct)
$this->name = $name; // Set first
parent::__construct($container); // Uses correct $name## Upgrade
This is a patch release with no breaking changes. Simply update your dependency:
composer update fcorz/hyperf-firebaseFull Changelog: v2.0.0...v2.0.1