Releases: dereuromark/cakephp-tools
Releases · dereuromark/cakephp-tools
1.9.4
Improvements
- Refactored enum() into a EnumTrait for easier inclusion in projects.
No need to extend this plugin's Entity class anymore. - Added docs for it.
1.9.3
Improvements
- Added AfterSave behavior to allow the entity to be available inside afterSave() callback.
Bugfixes
- Fixed BitmaskedBehavior to not remove the mapped field
1.9.2
Bugfixes
Fixed regression Tools component deep trimming.
1.9.1
Improvements
- Removed deprecations, min CakePHP version is now 3.7.
- Added
Utility::notBlank()
as more correct version ofUtility::notEmpty()
1.9.0
Improvements
- Improve TreeHelper (autoPath/autoPathClass, entity support, parent info in element/callback, indentation character) and add documentation
- Add TypeMapBehavior to allow runtime changes on the column types
- PHP 7.3 compatibility
1.8.0
Improvements
Allow Slugged behavior to use custom slugger via 'mode'
config. Use any callable here.
It internally still uses the deprecated Inflector::slug()
, so you can also easily replace it now with the Text::slug()
method:
use Cake\Utility\Text;
...
$this->addBehavior('Tools.Slugged', ['mode' => [Text::class, 'slug']]);
1.7.0
Improvements
- Fix BitmaskedBehavior empty usability
- Improved Bitmasked custom finder
find('bits')
to include typesexact
(default) andcontain
.
The latter allows you to do easy filtering - on paginated views for example.
1.6.0
Improvements
- Added a list of exceptions that also are 404 even with referer present.
- Deprecations removed.
Min CakePHP version is now 3.6.
0.12.4
2.x maintenance release
Fixed GoogleMaps helper to be able to use an API key Google.apiKey
via Configure.
This is required since 2018 and otherwise will not render the map.
1.5.7
Improvements
- Add getSafeRedirectUrl() for post/query + default without compromising redirecting (security issue for external redirect injection)
- Allow $disableErrorHandlerMiddleware in IntergrationTestCase to globally deactivate instead of verbosely per test case.