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 the RestBaseController or RestResourceController class instead
    • โž• Added:
      • JsonRestController => for simple Json REST API
      • RequestFormatter, 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 the connect method to override as well.