Skip to content

Parable PHP Framework 0.7.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@devvoh devvoh released this 29 May 10:10
· 345 commits to master since this release

Parable PHP Framework 0.7.0 release

This is a pre-release version of a project heavily in flux. Use at your own risk.

Changelog from 0.6.0:

Note: This version breaks backwards compatibility!

Changes

  • Since SessionMessage depends on an instantiated & set to 'session' resource GetSet, it shouldn't be a Component. It's been moved to \Devvoh\Parable. Because this means a namespace change, it's yet another minor version bump. Goes quickly.
  • To make the module Routes file simpler, the more framework-y functionality (DI & the module adding) has been moved to a new class - \Devvoh\Parable\Routes. This means yet another backwards incompatible change. I'm on a roll.
  • Comments have been improved significantly. Handy.
  • index.phtml mapped $this to \Devvoh\Parable\App, but it should now map to \Devvoh\Parable\View
  • The magic methods in \Devvoh\Parable\View are gone again. Though they worked fine, they felt out of place and inconsistent with how the rest of Parable now approaches its DI components. They've been replaced with magic properties that do the exact same thing. In a view, you can use $this->tool->method(), etc.
  • Property definitions now no longer explicitly set to null. Order of properties has been made consistent: DI properties > defined properties > undefined properties.
  • Vestigial properties have been removed from App, since the functionality has been moved to Tool.
  • Session management methods have been moved to \Devvoh\Parable\Session and out of \Devvoh\Components\GetSet, as they should be.
  • SessionMessage has lost initSession and gained a DI.
  • Cli has been reworked, now offers cll (clear line), cr (return to beginning of line) as well as colors.

Bugs

  • set_exception_handler function has been moved up, so it will also catch Autoloader/DI exceptions.
  • Some small fixes where false was being returned where a value was expected. These now return null.