Parable PHP Framework 0.12.5
Pre-release
Pre-release
Parable PHP Framework Changelog
0.12.5
Changes
\Parable\ORM\Model
now has the possibility oftoArrayWithoutEmptyValues
andexportToArrayWithoutEmptyValues
, and the defaulttoArray
andexportToArray
now return empty values.\Parable\ORM\Repository
now offersbuildAndSet()
andbuildOrSet()
. This fixes issue #10.- All hook
->trigger(...)
calls now make use of constants so that hooking into them is somewhat more comfortable as well. This fixes issue #11. - It's now possible to add
errorMode
to the database config so you can set the error mode. Use the values defined onPDO
for this:ERRMODE_SILENT
,ERRMODE_WARNING
orERRMODE_EXCEPTION
.ERRMODE_SILENT
is the default, so it's no change for you. Setting more punishing error modes should be a conscious choice. This fixes issue #12. - Typo in
Init\Example
fixed, was still referencinginitLocations
, whereas that'sinits
now. This fixes #14. \Parable\Http\Request
now no longer sets Method in its__construct
method, but checks the$_SERVER
values every timegetMethod
is called.\Parable\Http\Response::setHttpCode()
now throws an Exception when an invalid code is set.
Bugfixes
- You can now set a different
homeDir
thanpublic
, for those who need a different location due to their hosting setup. This makes it possible to keep all app-related code outside of the end-user-accessible dirs. This fixes #13. \Parable\Console
now supports--option=value
style options, as well as arguments. Simple$command->addArgument("name", $required = bool)
and you can use them. Arguments are in-order, but can be either preceeded or succeeded by options. This fixes #15.\Parable\Http\Response
now returns using the same HTTP protocol it was requested with, since it asks\Parable\Http\Request
what it should be. This fixes issue #16.
I'm also including the changelog for 0.12.1-0.12.4 here.
0.12.4
Bugfixes
\Parable\Framework\Toolkit::redirectToRoute()
did not usegetUrl
to build the url on top of the baseUrl.
0.12.2 - 0.12.3
Bugfixes
- Left-over but un-DI-ed
$toolkit
property on\Parable\Framework\View
was preventing use of toolkit in views. - Removed
composer.lock
since it's useless to end users.
0.12.1
Bugfixes
- Hook related to dispatching was being triggered twice. Fixed now.