0.0.31
This release concentrated on a refactoring of PHPKitchen\Domain\Web\Base namespace.
BC BREAKS
Reorganized PHPKitchen\Domain\Web\Base namespace.
Actionmoved toPHPKitchen\Domain\Web\Base\ActionsEntityModificationActionmoved toPHPKitchen\Domain\Web\Base\ActionsListingModelmoved toPHPKitchen\Domain\Web\Base\ModelsRecoverableEntitiesListModelmoved toPHPKitchen\Domain\Web\Base\ModelsViewModelmoved toPHPKitchen\Domain\Web\Base\Models
DEPRECATIONS
To prevend immediate failure of existing applications, following classes are kept for temporarly BC compatibiity and maked as deprecated at PHPKitchen\Domain\Web\Base namespace:
ActionEntityModificationActionListingModelRecoverableEntitiesListModelViewModel
NEW FEATURES
Updated actions hierarchy to become more flexible
Split response, repository and session related actions to mixins:
PHPKitchen\Domain\Web\Base\Mixins\RepositoryAccess: provides generic repository management methodsPHPKitchen\Domain\Web\Base\Mixins\ResponseManagement: provides generic response management methodsPHPKitchen\Domain\Web\Base\Mixins\SessionMessagesManagement:provides generic session and flashes management methods
Extracted action hooks for successful and failed processing to mixin PHPKitchen\Domain\Web\Base\Mixins\EntityActionHooks
Added new base actions
CallableAction: for running strategies and callbacksServiceAction: for running services
Web\Base\Actions\Action improvements
Added new rendering methods to utilize a controller's rendering functionality:
renderViewFileForAjaxrenderFilerenderPartialrenderAjax
Added printable to enable/disable rendering in action through printView method.