Releases: dereuromark/cakephp-shim
3.3.0
3.2.3
3.2.2
Fixes
Fixed up isModified() on entity for non strict comparison, e.g. when comparing DateTime values.
3.2.1
Fixes
Fixed RedirectOutOfBoundsTrait to continue to support paginate property as well as config.
3.2.0
Improvements
Added RedirectOutOfBoundsTrait
for controller pagination to auto-fix 404s for humans.
Simply add the trait and enjoy the magic:
use Shim\Controller\Controller;
use Shim\Controller\RedirectOutOfBoundsTrait;
class AppController extends Controller {
use RedirectOutOfBoundsTrait;
Instead of showing a not user-friendly 404 page, the pagination will redirect right away to the last page available.
3.1.1
Fixes
Fixed up default model class detection for shims.
3.1.0
Improvements
- Added NumericPaginator shim for contain shimming in 5.x.
3.0.1
Fixes
Fixed Command args to be not nullable.
3.0.0
CakePHP 5 compatible release
The plugin to help ease migration coming from CakePHP 4.x apps.
Shim Up: With CakePHP 4.x core and some of the shims, you can prepare your app already for 5.x.
Shim Down: Then, once upgraded, with 5.x core and some more shims you can further minimize required changes until the app works again.
Then you can slowly start refactoring again further while the app is already running again.
Improvements
- Added LegacyAwareTrait to shim
loadModel()
for apps that make heavy use of it still. - Added former Cake\Filesystem\File and Cake\Filesystem\Folder classes
- Added ModifiedTrait for entities and detecting actually changed fields (not just touched with same value)
3.0.0-RC
CakePHP 5 compatible pre-release
The tool to help ease migration coming from CakePHP 4.x apps.
Shim Up: With CakePHP 4.x core and some of the shims, you can prepare your app already for 5.x.
Shim Down: Then, once upgraded, with 5.x core and some more shims you can further minimize required changes until the app works again.
Then you can slowly start refactoring again further while the app is already running again.