Skip to content

Releases: phpMv/ubiquity

2.4.5 release

14 Jun 23:57
Compare
Choose a tag to compare

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 in onGenerateFormField($field, $nb, $name) event
  • Add methods for modal title and message (getFormModalTitle($instance) and formHasMessage())
  • 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 the index.php and .htaccess files to the public 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);

2.4.4 release

25 Apr 01:10
Compare
Choose a tag to compare

Added

  • UArrayModels class for array of models manipulation (GroupBy, asKeyValues, sorting...)
  • UModel class for models manipulation (property updating...)
  • ubiquity-debug integration

Before creating a new project, be sure to update the devtools:

composer global update

Fixed

  • Boolean types pb #174
  • ResponseFormatter import #173
  • DAO PostgreSQL
    • ConditionParser pb with cast #172
    • Null values on fk #171

2.4.3 release

07 Mar 19:11
Compare
Choose a tag to compare

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

  • 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.

2.4.2 release

08 Feb 01:41
474ab7b
Compare
Choose a tag to compare

Added

  • ViewRepository CRUD operations + Automatic passing of the handled objects to the view
  • AbstractRepository only CRUD operations for overriding
  • Repository a default repository for any model
  • getAllByIds method in DAO part

Fixed

  • Fix cache generation pb for field names & dbTypes

Updated

  • Update route default name (ControllerName-{controller}.action)

devtools

  • livereload for php embedded web server

2.4.1 release

17 Jan 18:05
Compare
Choose a tag to compare

Fixed

Added

  • Dark theme for CRUD controllers

Documentation

  • Security part
  • ACL part
  • Attributes/annotations update

2.4.0 release

31 Dec 02:19
Compare
Choose a tag to compare

Added

  • PHP8 attributes support => with PHP8, Ubiquity uses the PHP8 attributes system for annotations (Router, ORM, Validators...).
  • password_verify method to URequest

Updated

  • CRUD and Auth controllers no longer use twig inheritance on views by default: It is easier to customize the display.

2.3.13 release

11 Dec 14:52
2837849
Compare
Choose a tag to compare

Added

Fixed

2.3.12 release

30 Sep 18:11
65ad30f
Compare
Choose a tag to compare

Added

  • Named db statements for async platforms
  • Rest events on insert and update BEFORE_INSERT = 'rest.before.insert' and BEFORE_UPDATE = 'rest.before.update'
  • insertGroups method (inserts in an implicit transaction)
  • quote options for PDO wrappers
  • ApplicationStorage for global variables with async platforms (Swoole, Workerman, ngx_php...)

Fixed

  • [orm] oneToMany and manyToMany loading pb with 2.3.11 version see #145

Tests

  • Adding tests
  • increase of coverage to 73%.

2.3.11 release

27 Jul 23:26
89c54d7
Compare
Choose a tag to compare

Added

  • DAOCache (caches objects loaded by id)
  • MemcachedDriver system
  • RedisDriversystem

Updated

  • fomantic-ui 2.8.6
  • default index view relooking
  • Cache system and ArrayCache refactoring
  • light opt for async view and dbWrapper getStatement

Fixed

  • [rest] no violations on insert with ValidatorManager see #122
  • [rest] Validation on insertion should be complete see #123
  • [postgresql] pb wth PgsqlDriverMetas (names protection) see #128
  • [postgresql] Insert fail with non autoinc pk see #129
  • [webtools][models] click on Nothing to display generates an error see #130
  • [webtools][models] instances count not updated see #131
  • Session names with non allowed characters see #134
  • SimpleViewAsyncController pb with cache (no open issue)

2.3.10 release

26 Jun 23:33
b4445ca
Compare
Choose a tag to compare

Added

  • transformer for UCookie (for Crypto)
  • getter on session Csrf protection
  • security level to csrf protection (0 => no secure)

Updated

  • fomantic-ui 2.8.5