Releases: dereuromark/cakephp-tools
CakePHP2.7 compatability
String needs to be CakeText.
2.x: Minor adjustments
Make the JsonableBehavior behave more consistent regarding return values.
Init 3.x
Init CakePHP 3.x
Initialize beta release.
2.x: Further cleanup
Shim
Use Shim 0.4.
Also shimming notBlank of CakePHP2.7 so the deprecation errors are not thrown.
Cleanup
With this release the promised cleanup is now at an important milestone.
More functionality towards a future proof 2.x app went into the only dependency, the Shim plugin.
At the same time, many sub-features of the almighty Tools plugin now are in their separate plugin repo:
- AjaxComponent/AjaxView: https://github.com/dereuromark/cakephp-ajax
- RssView: https://github.com/dereuromark/cakephp-feed
The corresponding Tools plugin classes are deprecated and will be removed with one of the next releases.
Make sure you include and load the plugin and change the syntax, e.g.
$this->viewClass = 'Tools.Rss'
becomes $this->viewClass = 'Feed.Rss'
.
More to come in a future release (Geo, TinyAuth, ..., ?).
Use Shim 0.3 and minor adjustments
- Shim 0.3
- Add missing Controller files
Fix geocoding
They changed the URL.. Real heros :)
Shim 0.2.0 and cleanup
Breaking changes
- Model::get() now takes $options instead of just $fields as 2nd argument due to (3.x) shim, it also throws a NotFoundException if no record can be found. Use record() instead if you want to just return an empty array.
PHP 5.4+
With PHP5.3 being long EOL, and PHP5.4 only months away from it ( http://php.net/supported-versions.php ) it now makes sense to raise the min requirement for all plugins to at least PHP5.4+.
All servers should long be PHP5.5+ by now anyway.
This allows the short array syntax which also makes migration between different major CakePHP versions of plugins easier.
Refactor
I also started to extract the shims mixed in this plugin into an own plugin.
So this plugin as of now has this dependency (automatically resolved via composer).
Please also adjust your App::uses() or Config statements if you used one of the following:
- Tools.Modern hasher => Shim.Modern
- Tools.Fallback hasher => Shim.Fallback
- Controller/Component/Auth/PasswordHasherFactory
- PHP5.4 password_compat shim require statement
The following functionality will be soon deprecated and will be removed with 0.9 (= replaced with standalone plugin):
- RssView => Uses Feed plugin one soon
- AjaxComponent/AjaxHelper => Uses Ajax plugin ones soon
- TinyAuth => Uses Feed plugin one soon
It is a preparation towards 3.x and will slim down the actual repo size. Since it is just a matter
of a "composer require" command plus simple plugin prefix replacement, this should not be a big deal.
Please bear that in mind for the next release.
Also in this release
Bugfixes:
- IntegrationTestCase session reset
Shims:
- IntegrationTestCase redirect asserts for 2.5 and below.
- IntegrationTestCase convenience methods added
More 3.0 backports to ease migration
Backport adjustments to ease migration to 3.0:
- IntegrationTestCase backport completed - for better controller testing
- Flash messaging similar to 3.0 incl. Element files and params/escaping.
- updateAll() and deleteAll() joinless variants
Fixes
- AjaxComponent and flash messages
- Minor other ones
Useful additions
- Monitor headers (output)
Important
Do not use dev-master
from here on, as it will now be further adjusted to Cake3 compatibility, and as such will be PHP5.4+ and CakePHP2.6+ in the next minor release.
Please lock your composer.json to a specific version, e.g. 0.7.*
if you are running your apps below that requirement.
Model validation i18n and 3.0 shims
Xmas Release
This release mainly aims to bring 2.x apps closer to 3.x.
It is compatible to 2.6, as well.
Overwriting translations
Currently, the translations in tools domain cannot be overwritten in the application. That is a core deficiency.
To overcome this I removed all .po
files from the plugin itself, and only left the .pot
stubs.
You need to copy needed .pot
files over to your APP/Locale
folder and rename them to .po
.
Behaviors: Passwordable
The model validation is now also completely in tools
domain. Makes things easier and does not collide with the default validation
domain.
Please make sure you are using an updated tools.po
file.
Shims
A few 3.0 shims have been added to ease migration towards the next major release.
- Flash messages have been extracted from Common component: CommonComponent::flashMessage() is now FlashComponent::message() or ...::$type()
- IntegrationTestCase backport for basic 3.0 functionality and syntax regarding the future of integration tests
Those changes are fully BC, though.
Other
Minor bugfixes resolved and a few features added.
Important
Do not use dev-master
from here on, as it will now be further adjusted to Cake3 compatibility, and as such will soon be PHP5.4+.
Please lock your composer.json to a specific version, e.g. 0.6.*
if you are running your apps below that requirement.