Skip to content
This repository has been archived by the owner on Jan 16, 2019. It is now read-only.

5.1.0 - Repeat after me: setter injection is bad

Compare
Choose a tag to compare
@mikey179 mikey179 released this 31 Dec 17:25
· 213 commits to master since this release

BC breaks

  • Setter injection is now discouraged and disabled by default, and will be removed with 6.0.0.
    • Reenable the old behaviour with stubbles\ioc\Binder::enableSetterInjection()

Other changes

  • IoC now supports default param values for non-optional injections:
    If no binding present for a param but the param has a default value the
    default value will be used for injection.
  • implemented #117: injection stack on binding exceptions
  • improved performance of annotation parsing
  • improved annotation cache storage functions api
  • properties from config.ini are also now available as instance of stubbles\lang\Properties, named config.ini