Releases: phpMv/ubiquity
2.5.2 release
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
Added
- Translations for Ubiquity guide into Spanish => thanks to @alnux for his work in progress
- Translations for Ubiquity guide into french
Updated
In ORM:
- support for primary keys updating (with
DAO::update($object)
)
Tests:
- Improvement of the test coverage => 71%
2.5.0 release
If devtools are already installed globally, update them:
composer global update
Added
setIsolationLevel
for transactions withDAO
andDatabase
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 inDiControllerParser
(pb with name) - no open issue -
2.4.12 release
Added
count
method toAbstractRepository
- app methods to Logger:
appLog
,appInfo
,appError
... - regenerateId for
USession
DataFormHelper
class for model form generationforward
method toUResponse
Fixed
- php 8.1 deprecation in
Validator
,UModel
,UArrayModel
classes checkConnection
inAuthController
data-target
bug inMultiResourceCrudController
UCookie
pb with transformers
removed
diSemantic
anddiBootstrap
inFramework
=> useAjax\php\ubiquity\JsUtils::diSemantic(...)
instead.
2.4.11 release
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
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
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
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
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
andgetNS
methods
2.4.6 release
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