Skip to content

Releases: php-kitchen/yii2-domain

0.0.35

05 Mar 21:17
454a07e

Choose a tag to compare

This release improves actions.

NEW FEATURES

Added returning data from callable in actions(PR 40)

protected function runCallable() now return result of callback set to callable property. This result might be used in actions that require the processing of a callback result

0.0.34

27 Nov 11:37
74b8201

Choose a tag to compare

This release brings new features to entity attributes functionality.

NEW FEATURES

Added ability to check that attribute was changed by the value (38)

The existing method wasAttributeChanged did not work as expected due to Yii's internal issue with attribute changes matching related to typecasting. The new method wasAttributeValueChanged added to have an ability to check whether the attribute value was changed.

Note: the new method is still a hack and can't guarantee 100% correct behavior. This functionality is still a work in progress.

0.0.33

15 Nov 09:56
4bb1300

Choose a tag to compare

Minor refactoring:

  • Extracted method to gets query from the repository in src/DB/Record.php

0.0.32

30 Sep 08:05
3fffc96

Choose a tag to compare

This is a hotfix release.

Hotfixes

  • incorrect parent call in Web/Base/Actions/EntityModificationAction.php::prepareViewContext
  • incorrect return params name in src/Web/Base/Actions/Action.php::prepareParamsForViewFile

0.0.31

27 Sep 12:21
57f3a05

Choose a tag to compare

This release concentrated on a refactoring of PHPKitchen\Domain\Web\Base namespace.

BC BREAKS

Reorganized PHPKitchen\Domain\Web\Base namespace.

  • Action moved to PHPKitchen\Domain\Web\Base\Actions
  • EntityModificationAction moved to PHPKitchen\Domain\Web\Base\Actions
  • ListingModel moved to PHPKitchen\Domain\Web\Base\Models
  • RecoverableEntitiesListModel moved to PHPKitchen\Domain\Web\Base\Models
  • ViewModel moved to PHPKitchen\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:

  • Action
  • EntityModificationAction
  • ListingModel
  • RecoverableEntitiesListModel
  • ViewModel

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 methods
  • PHPKitchen\Domain\Web\Base\Mixins\ResponseManagement: provides generic response management methods
  • PHPKitchen\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 callbacks
  • ServiceAction: for running services

Web\Base\Actions\Action improvements

Added new rendering methods to utilize a controller's rendering functionality:

  • renderViewFileForAjax
  • renderFile
  • renderPartial
  • renderAjax

Added printable to enable/disable rendering in action through printView method.

0.0.30

13 Aug 08:41
31980ca

Choose a tag to compare

0.0.29

14 May 10:38
93b2c4e

Choose a tag to compare

Minor refactoring:

  • Added markHandled method for Base/ModelEvent.php
  • Added the reloading attributes from entity to model after save
  • Added throwing NotFoundHttpException for Web/Mixins/ModelSearching::findEntityByIdentifierOrFail()
  • Added ability to throw the exception outward for EntityModificationAction::tryToSaveEntity()
  • Replaced query to repository::find() for getting related entity of record
  • Fixed namespaces

0.0.28

12 Apr 14:19
539b2e9

Choose a tag to compare

Improvements

Approved PR Fix suppressed exception to allow throwing exceptions in the repository transactions.

0.0.27

11 Dec 09:42
524a544

Choose a tag to compare

Bug Fixes
Fixed response http status code for ajax request after save(#30)

0.0.26

14 Nov 11:36
62c7150

Choose a tag to compare