Releases: dereuromark/cakephp-tools
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.
I18n refactoring
Some complained about the plugin using the same i18n translation namespace (app) instead of its own.
Thanks to janriokrause for his great work this is now resolved. I know, it was long overdue.
Anyway, it is a breaking change. For those not using tags, but the master branch directly it will directly affect the code base.
So for those and the ones upgrading to this version please copy-and-paste the Tools plugin tools.po
file to your app /Locale
folder and adjust it accordingly. It will now not use any default.po
translations anymore for the whole plugin.
Also contains some Geocode lib fixes and refactorings.
This will be one of the last releases of the CakePHP2.x branch, I will now focus more on the 3.x branch development.
Updated Packagist name
This release was necessary due to the unification of Packagist namespaces.
All CakePHP plugins should be named "cakephp-plugin-name".
So the former package "tools-cakephp" was renamed to "cakephp-tools".
Please make sure your composer.json requirements are updated as soon as possible:
dereuromark/cakephp-tools
The former one should still work, though - even though it is now marked "abandoned" in Packagist.
Rest assured - no further renaming will be happening.
Third release
Rewrite to a more modern approach for some modules like GeocodeLib or Passwordable Behavior.
Some 3.x shims for 2.x usage already.
So you can, for example, directly use the new PHP5.5 password_hash() functionality in PHP5.3/PHP5.4 now.
Also:
FontIcons for FormatHelper.
Late Static Binding (PHP5.3+).
Lots of cleanup.
This release is for CakePHP2.5+ applications. It is best to upgrade if you didn't do that yet.
Sidenote: A new branch for Cake3 has been added. Feel free to help porting some of the key features to the new CakePHP3 version. Some functionality we can also move into own plugins/namespaces. Just contact me if you are interested in helping out.
Second release
Some major bugs have been fixed and it is more thoroughly tested and stable now.
Also see the Wiki for a more detailed documentation on some parts.
It still needs more test coverage and some rewriting/cleanup.
See the open ticket regarding this.
Feel free to join in.
First release
First official release of the Tools plugin.
It still needs more test coverage and cleanup. Feel free to help out.
But it should be quite stable by now.