Ubiquity v2.4.12 Release Notes

Release Date: 2022-04-25 // 9 months ago
  • ➕ Added

    • count method to AbstractRepository
    • app methods to Logger: appLog, appInfo, appError...
    • regenerateId for USession
    • DataFormHelper class for model form generation
    • forward method to UResponse ### 🛠 Fixed
    • 🗄 php 8.1 deprecation in Validator, UModel, UArrayModel classes
    • checkConnection in AuthController
    • data-target bug in MultiResourceCrudController
    • UCookie pb with transformers

    ✂ Deleted

    • diSemantic and diBootstrap in Framework => use Ajax\php\ubiquity\JsUtils::diSemantic(...) instead.

Previous changes from v2.4.11

  • ⚡️ Updated (breaking change)

    • 🔨 AuthControllers refactoring
    • CRUDControllers (return types added on methods to override)

    ⚡️ With an update on an existing project, the following error may occur in derived classes of AuthController, AuthFiles, CRUDController, CRUDFiles:

    Fatal error: Declaration of controllers\auth\files\MyAuthFiles::getViewIndex() must be compatible with Ubiquity\controllers\auth\AuthFiles::getViewIndex(): string

    The signature of the methods of AuthController, AuthFiles, CRUDController, CRUDFiles has changed, by adding the return types:

    It is therefore necessary to add this return types on the overridden methods

        public function getViewIndex():string {
            return 'MyAuth/index.html';
        }
    

    ➕ Added

    In Auth controllers:

    • Account recovery (password reset)
    • AuthControllerConfig, UASystem, UConfigFile classes