Skip to content

v3.0.0

Compare
Choose a tag to compare
@MarcinOrlowski MarcinOrlowski released this 02 Mar 11:23
· 1256 commits to master since this release
  • BACKWARD INCOMPATIBILE CHANGES
  • [RB-17] success() now allows to return API code as well
  • Corrected default config file containing faulty and unneeded use entries
  • [RB-20] Renamed ErrorCode class to ApiCodeBase
  • ApiCodeBase's getMinCode() and getMaxCode() are now public
  • Improved error messages to be even more informative
  • All exceptions thrown due to misconfiguration have CONFIG: message prefix now
  • Renamed error_code param to api_code in all the method signatures
  • :api_code is now code placeholder in strings (:error_code is no longer supported)
  • Default HTTP codes are now declared as constants DEFAULT_HTTP_CODE_xxx if you need to know them
  • ApiCodeBase::getMap() now ensures map config entry of expected array type
  • [RB-26] Added successWithCode() method