Skip to content

0.2.1

Latest
Compare
Choose a tag to compare
@pointybeard pointybeard released this 21 Jun 00:39
· 57 commits to master since this release

Added

  • Added JSON_UNESCAPED_SLASHES to avoid unnecessary escaping of slashes in output. (#8)
  • Added new abstract extension AbstractApiException which is used by ControllerNotFoundException and MethodNotAllowedException. Allows setting of HTTP response code to avoid every exception thrown appearing as a '500 Internal Server Error'

Changed

  • Updated core controller event based on changes to ControllerNotFoundException and MethodNotAllowedException
  • Updated ControllerNotFoundException and MethodNotAllowedException to extend the new AbstractApiException class
  • Updated ExceptionHandler to check for overloaded http response code. Calls the method getHttpStatusCode() if it is available

Fixes

  • Removed the use clause for Symphony as it is redundant and causes a PHP warning
  • Using API Framework exception and error handlers instead of Symphony built in. (#9)