Parable PHP Framework 0.12.0
Pre-release
Pre-release
0.12.0
Note: Breaks backwards compatibility. See list below for details how to upgrade from 0.11.x
Changes
- New
Config
array layout. See the exampleConfig
for the changes! Routing
,Init
and additionalConfig
files now load the same asCommands
already did. OnlyConfig\App
is an expected part of Parable, and from there you can just pass in arrays with class names (see new example in structure) and Parable will get the values from them in the order you provide them in. This removes the need forsortOrder
in Configs, makesRouting
files easier to split up for readability, and forInits
it really doesn't change much.Config
files now need to implement\Parable\Framework\Interfaces\Config
, no more extends.Routing
files now need to implement\Parable\Framework\Interfaces\Routing
, no more extends.- Replaced
strpos
method of deciding whether a method was public or not withReflection
logic. Affects\Parable\ORM\Model::toArray()
and\Parable\ORM\Model::reset()
. - No longer add structure folder to the autoload path in
tests/bootstrap.php
, since we no longer use the_struct
files in testing. \Parable\Framework\App\loadInits()
has been moved up in the run procedure, allowing more triggers:parable_load_inits_after
,parable_load_routes_before/after
,parable_init_database_before/after
,parable_dispatch_before/after