Skip to content

2.19.1

Choose a tag to compare

@koriym koriym released this 18 Nov 12:37
· 8 commits to 2.x since this release
ccb3c5b

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 LegacyStringParser class in src-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\LegacyStringParser for parsing legacy string format
  • Updated: Ray\Di\Name to delegate string parsing to LegacyStringParser
  • 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