Skip to content

1.4.0

Latest
Compare
Choose a tag to compare
@smichaelsen smichaelsen released this 16 Jan 15:38
· 36 commits to develop since this release

Important Changes

Since 1.3

  • Routing: Instead of using regular expressions you can now use a simplified syntax to define your routes. You still have the options of regular expressions when you need the flexibility.
  • Massive code cleanups, including streamlined camelCasing of all variables and method names.
  • The documentation is still incomplete but was improved and covers all important changes of this release.
  • Integrate a new MailService based on swiftmailer.
  • Send UTF-8 header to the browser by default (configurable through settings.ini).
  • Better detection of project root, so no more $_ENV['AppZap\PHPFramework\ProjectRoot'] = dirname(__FILE__); in your index.php.
  • Removed airbrake support which is now delivered by the airbrake plugin.
  • More and better Unit Tests.
  • A couple of more small tweaks, bugfixes and features.

Upgrade instructions:

Coming from 1.3 you need to consider the following things to keep your application working:

  • When methods were renamed for the camelCase streamlining the old names were kept but deprecated. They still work, but will be gone in 1.5. Upgrade them soon. This also applies to getters and setters of your model classes.
  • Routing: The host name (and optionally the path to your application) is now stripped from the url for routing, so the matching is done with the rest of the string without leading slash! You might need to adapt your routes definitions. => documentation