Changelog History
Page 1
-
v2.4.12 Changes
April 25, 2022โ 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
โ Deleted
diSemantic
anddiBootstrap
inFramework
=> useAjax\php\ubiquity\JsUtils::diSemantic(...)
instead.
-
v2.4.11 Changes
February 22, 2022โก๏ธ 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
-
v2.4.10 Changes
February 13, 2022โ Added
In Auth controllers:
- Two factor authentification
- 0๏ธโฃ 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
-
v2.4.9 Changes
January 01, 2022โ Added
- ๐ image insertion in AssetsManager,
img
twig function see https://github.com/phpMv/ubiquity/issues/188 reverse
to Transformers- 0๏ธโฃ nonce in default template files
๐ Fixed
- typo in MultiResourceCrudController (no open issue)
- โ php 8.1 depreciation warnings (UbiquityException, UCookie, UResponse...)
- ๐ image insertion in AssetsManager,
-
v2.4.8 Changes
December 01, 2021โ 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)
-
v2.4.7 Changes
November 01, 2021โ Added
Domain Driven design approach with
DDDManager
classDDDManager::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)
- 0๏ธโฃ default
index.html
W3C validation errors
โก๏ธ Updated
- ๐ light opt :
parseURI
andgetNS
methods
-
v2.4.6 Changes
September 06, 2021โ 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
- 0๏ธโฃ default index page
-
v2.4.5 Changes
June 15, 2021โก๏ธ Before creating a new project, be sure to update the devtools if they are installed globally:
composer global update
โ Added
- โก๏ธ mass update in DAO class (
updateAll
) - type checker for routes params (int, bool=>regex)
- status code for router (200, 404, 405)
๐ Fixed
- autowiring pb with ReflectionType
- ๐ Mysql pb: replace parser cast for Mysql/mariaDB diff
- โก๏ธ ManyToMany update pb (no open issue)
โก๏ธ Updated
Models generation
- The regeneration of models preserves the code implemented on the existing models.
CRUD controllers
- โ Add custom default buttons to dataTable (returned by
ModelViewer::getDataTableRowButtons()
) - โ Add
onNewInstance($instance)
event - โ Add
name
paramteter inonGenerateFormField($field, $nb, $name)
event - โ Add methods for modal title and message (
getFormModalTitle($instance)
andformHasMessage()
) - โ Add hook for form modal buttons (
onFormModalButtons($btOkay, $btCancel)
)
Application root (breaking change)
- For apache and nginX, root folder is set to public folder
๐ For an old project (created with a version prior to 2.4.5), you have to modify
index.php
and move theindex.php
and.htaccess
files to thepublic
folder.<?php define('DS', DIRECTORY_SEPARATOR); //Updated with index.php in public folder define('ROOT', __DIR__ . DS . '../app' . DS); $config = include_once ROOT . 'config/config.php'; require_once ROOT . './../vendor/autoload.php'; require_once ROOT . 'config/services.php'; \Ubiquity\controllers\Startup::run($config);
- โก๏ธ mass update in DAO class (
-
v2.4.4 Changes
April 25, 2021โก๏ธ Before creating a new project, be sure to update the devtools:
composer global update
โ Added
-
v2.4.3 Changes
March 07, 2021โ 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 (