Releases: dereuromark/cakephp-tools
2.x Bugfixes
- ResetBehavior: do not update
modified
if not desired - Version checks fixed for
2.10.x
to be greater than2.3.x
etc - Emogrifier improvements
Improvements
Improvements
UrlComponent for handling URLs in the controller scope:
- buildReset() and buildComplete()
- resetArray() and completeArray()
- defaults()
just as for the UrlHelper which now has
- buildReset() and buildComplete()
- resetArray() and completeArray()
- defaults()
"reset" always resets plugin
and prefix
automatically, this is very useful when working with navigation pieces that will always appear, even in plugin context and therefore must be reset here.
"complete" will always keep all URL pieces including the query string. This is useful when passing around filters and alike and don't want to lose them inside a certain scope.
Removals
Some things have been removed as they can now be found in their own plugin:
- Flash component and helper are now in an own Flash plugin
- AuthUser component and helper are now integrated in TinyAuth
- JsHelper and CookieHelper are now in Shim
- YearType is now in Shim
Also:
- Deprecated Utility methods have been removed.
Deprecations
TreeHelper is now deprecated, use this stand-alone repo.
3.x Allow Passwordable to update field list
Passwordable behavior can now auto-update field list for its needed fields.
It can also force the field list if not provided. Otherwise the entity must have those fields accessible.
3.x Small fixes
Bugfixes
The Url helper has been fixed:
- reset()
- complete()
now both work as expected.
The JsonableBehavior can now work with NAN and INF just as CakePHP core can since PHP 5.5+.
3.x PostgreSQL support and AuthUser deprecation
PostgreSQL
PostgreSQL has been added to the Travis build matrix and the plugin is supposed to work with it completely now.
AuthUser now in TinyAuth
Now with TinyAuth and full AuthUser support that part can now be deprecated inside Tools for good.
It will be removed in the next minor version, so please upgrade to TinyAuth component and helper here.
Those also perfectly work stand-alone, so no need to also use Authentication or Authorization of TinyAuth - but you very well could completely integrate it in minutes and save yourself a lot of controller code in your existing application.
Removed deprecations, improved Bitmasked
Deprecations
A few classes had to be marked as deprecated and "discontinued":
- SoftDelete
- Logable
- Revision (PHP7 incompatible!)
They will not be part of Tools 1.x (CakePHP 3.x) and will have to be pluginized standalone.
Some of them even already partially exist as such for 3.x.
Please make sure that you move this into your own plugin if you rely on that in the future.
Features
Bitmasked behavior now allows for multiple fields. Changes should be BC.
CakePHP 3.3 compatibility
Also requires now PHP 5.5+ then.
Small fixes
Passwordable behavior fix around "column id is ambigous" error.
Fix Email testing
Allow Configure::read('Email.config') to be used for easier testing of email sending.
Fix ErrorHandler and PHP7 compatability
ErrorHandler must not have a PHP5 only typehint.
Some small fixes included.