Skip to content

Releases: phpMv/ubiquity

2.5.2 release

05 Feb 14:50
725bb04
Compare
Choose a tag to compare

composer global update is required before creating a new project

Added

  • Latte template engine integration (see #204 )
  • Plates template engine integration

For creating a new project with Latte as default template engine:

Ubiquity new myProject -v=latte -a

Updated (breaking change)

  • Default template engine (Twig) is relocated in \Ubiquity\views\engine\twig\Twig and was before in \Ubiquity\views\engine\Twig

2.5.1 release

01 Jan 02:15
Compare
Choose a tag to compare

Added

Updated

In ORM:

  • support for primary keys updating (with DAO::update($object))

Tests:

  • Improvement of the test coverage => 71%

2.5.0 release

18 Dec 22:37
82779a6
Compare
Choose a tag to compare

If devtools are already installed globally, update them:

composer global update

Added

  • setIsolationLevel for transactions with DAO and Database in Mysql/MariaDb.

Breaking changes

  • env var support for config files:
    • Cache initialization is required for config
    • loaded config file is located in app/cache/config/config.cache.php after cache initialization

Fixed

  • Injected attribute parsing in DiControllerParser (pb with name) - no open issue -

2.4.12 release

24 Apr 22:57
Compare
Choose a tag to compare

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

removed

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

2.4.11 release

23 Feb 02:37
Compare
Choose a tag to compare

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

2.4.10 release

13 Feb 19:00
Compare
Choose a tag to compare

Added

In Auth controllers:

  • Two factor authentification
  • Default account creation + email validation

In Router:

  • Action parameters typing with Router (int, float, bool)

Fixed

  • RestServer Fix php 8.1 depreciation
  • php 8.1 depreciations in ModelsCacheUpdated, ValidatorMultiple...

Updated

  • Default index css style

2.4.9 release

03 Jan 01:14
Compare
Choose a tag to compare

Added

  • image insertion in AssetsManager, img twig function see #188
  • reverse to Transformers
  • nonce in default template files

Fixed

  • typo in MultiResourceCrudController (no open issue)
  • php 8.1 depreciation warnings (UbiquityException, UCookie, UResponse...)

2.4.8 release

01 Dec 19:30
5489174
Compare
Choose a tag to compare

Added

  • Pseudo-migrations in webtools and devtools
Ubiquity info-migrations
Ubiquity migrations
  • Models creation command in devtools
Ubiquity new-model User
Ubiquity new-model user,group

Updated

  • Db wrappers for migrations
  • Added DbOperations

Fixed

  • Fix absolute path pb in router with #/ (no open issue)
  • Fix mainParams pb in router cache generation (no open issue)

2.4.7 release

01 Nov 15:12
9f47686
Compare
Choose a tag to compare

Added

  • Domain Driven design approach with DDDManager class
DDDManager::setDomain('users');

Sample file structure:

app/
    domains/
        users/
            models/
            controllers/
            views/
            services/
            ...
        posts/
            models/
            controllers/
            views/
            services/
            ...
  • Route main parameters
#[Route('/foo/{mainParam}')]
public class FooController {
	public $mainParam;
}
#[Route('/foo/{_setMainParam()}')]
public class FooController {
        private $mainParam;

	pubic function _setMainParam(string $p){
	    $this->mainParam=$p;
     }
}

Fixed

  • Tests pb (codeception vulnerability)
  • AssetsManager js and css attributes pb (no open issue)
  • default index.html W3C validation errors

Updated

  • light opt : parseURI and getNS methods

2.4.6 release

06 Sep 14:38
Compare
Choose a tag to compare

Added

  • [ORM] Update cascade behavior
  • boolean transformer
  • main params for routes
  • MultiResourceCRUDController Crud controller with index for several models
  • [ORM] aggregate uQueries (count, sum, min, max, avg)

Fixed

  • [DAO] Fix Where pb with count method
  • [DAO] Fix Where pb with exists method

Updated

  • default index page