Skip to content

Releases: dereuromark/cakephp-tools

1.9.4

16 Jun 12:01
1aae331
Compare
Choose a tag to compare

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

11 Apr 18:14
4f720ea
Compare
Choose a tag to compare

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

08 Mar 14:43
b271279
Compare
Choose a tag to compare

Bugfixes

Fixed regression Tools component deep trimming.

1.9.1

24 Jan 09:13
Compare
Choose a tag to compare

Improvements

  • Removed deprecations, min CakePHP version is now 3.7.
  • Added Utility::notBlank() as more correct version of Utility::notEmpty()

1.9.0

30 Nov 17:49
Compare
Choose a tag to compare

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

27 Nov 22:44
0833d3c
Compare
Choose a tag to compare

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

18 Nov 20:50
Compare
Choose a tag to compare

Improvements

  • Fix BitmaskedBehavior empty usability
  • Improved Bitmasked custom finder find('bits') to include types exact (default) and contain.
    The latter allows you to do easy filtering - on paginated views for example.

1.6.0

28 Oct 17:48
45805fe
Compare
Choose a tag to compare

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

08 Sep 16:12
Compare
Choose a tag to compare

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

06 Sep 10:57
Compare
Choose a tag to compare

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.