2.19.1
What's Changed
Backward Compatibility Fix
This release restores backward compatibility for the string format in toConstructor() method that was accidentally removed in 2.19.0 (commit da864a5).
Restored Support:
- String format:
toConstructor(ClassName::class, 'param=name,param2=name2') - This format is now handled by the new
LegacyStringParserclass insrc-deprecated/di/ - Marked as
@deprecated- prefer using parameter-level attributes or array format
Recommended Modern Approaches:
- Parameter-level attributes:
#[Named('name')]on constructor parameters - Array format:
toConstructor(ClassName::class, ['param' => 'name'])
Technical Details:
- New class:
Ray\Di\LegacyStringParserfor parsing legacy string format - Updated:
Ray\Di\Nameto delegate string parsing toLegacyStringParser - Added comprehensive tests for string format parsing
This fix ensures that existing code using Ray.AuraSqlModule and other packages relying on the string format will continue to work.
Full Changelog: 2.19.0...2.19.1