Ubiquity v2.4.3 Release Notes
Release Date: 2021-03-07 // about 3 years ago-
โ Added
- ๐
Dark mode for CRUD controllers (
setStyle('inverted')
) - CRUD hooks
onBeforeUpdate(object $instance, bool $isNew)
onBeforeUpdateRequest(array &$requestValues, bool $isNew)
- Twig
isAllowedRoute(role, routeName)
added if ubiquity-acl is present. ### โก๏ธ Updated #### Validators
- 0๏ธโฃ Model validators can be used on the client side (used by default for CRUD controllers). #### Routing
- Start router cache indexing (for routes with parameters) => This cache indexing is not yet used in production.
๐ Fixed
- ๐ fix
Startup::getTemplateEngineInstance
method name. - AuthController finalize and initialize pb with bad creditentials(no open issue)
- ๐ Make manyToOne dropdowns clearable in CRUD controllers for fk null values.
- ๐ DI parser pb (no open issue) ### ๐ฅ Breaking change possible #### ๐จ Rest controllers refactoring
- โ Removed:
SimpleRestController
,RestController
=> Use theRestBaseController
orRestResourceController
class instead - โ Added:
JsonRestController
=> for simple Json REST APIRequestFormatter
,JsonRequestFormatter
,JsonApiRequestFormatter
=> for JSON api, JSON or url-encoded requests
- โก๏ธ Updated (for request with authorization - accesstoken):
- The
checkPermissions
method in REST controllers must be overridden to check the data associated with an authentication token. checkPermissions
must be used in conjunction with theconnect
method to override as well.
- The
- ๐
Dark mode for CRUD controllers (