Skip to content

Releases: phpMv/ubiquity

2.2.0 release

03 Jul 16:09
Compare
Choose a tag to compare

Added

  • Web-tools
    • Maintenance mode (see #49)
    • Updates checking for cache (modifications)
    • Customization (tools)

Deleted/updated

  • Webtools removed from Ubiquity main repository and are in there own repo

Use composer require phpmv/ubiquity-webtools to install them.

Breaking change possible:

Classes relocation

  • Ubiquity\controllers\admin\utils\CodeUtils->Ubiquity\utils\base\CodeUtils
  • Ubiquity\controllers\admin\interfaces\HasModelViewerInterface->Ubiquity\controllers\crud\interfaces\HasModelViewerInterface
  • Ubiquity\controllers\admin\viewers\ModelViewer->Ubiquity\controllers\crud\viewers\ModelViewer
  • Ubiquity\controllers\admin\popo\CacheFile -> Ubiquity\cache\CacheFile
  • Ubiquity\controllers\admin\popo\ControllerSeo -> Ubiquity\seo\ControllerSeo
  • Ubiquity\controllers\admin\traits\UrlsTrait -> Ubiquity\controllers\crud\traits\UrlsTrait

Migration

  • Update devtools: composer global update
  • In existing projects:
    composer require phpmv/ubiquity-webtools for webtools installation.

Fixed

  • Router: pb with route priority attribute see #54

2.1.4 release

13 Jun 09:05
1e74233
Compare
Choose a tag to compare

Added

  • Translate module in webtools
  • transChoice method for translations with pluralization (tc in twig templates)
  • Transactions and nested transactions in Database and DAO classes see #42
  • getById method in DAO class (optimization)
  • Ubiquity-swoole server (Ubiquity serve --type=swoole)

Fixed

  • Fatal error in startup (not 404) fix #43
  • Version 2.1.3 displays the number of version 2.1.2

2.1.3 release

08 May 23:30
eb37f2d
Compare
Choose a tag to compare

Added

  • Support for Http methods customization (for URequest & Uresponse) via Ubiquity\utils\http\foundation\AbstractHttp class.
  • Support for session customization via Ubiquity\utils\http\session\AbstractSession
  • multisites session Ubiquity\utils\http\session\MultisiteSession(1.0.0-beta)
  • ReactPHP server available from the devtools with Ubiquity serve -t=react command

Fixed

  • [ORM] model Table annotation : fix #39

Fixed

  • [Logging] init logger fails if debug=false : fix #31

Documentation

2.1.2 release

27 Apr 00:09
Compare
Choose a tag to compare

Fixed

  • Twig views caching : fix #26
  • ORM : sync $instance->_rest array with $instance updates
  • REST:
    • pb on adding in SimpleRestController : fix #27
    • pb on updating with manyToOne members : fix #30

2.1.1 release

19 Apr 10:33
c60d6c4
Compare
Choose a tag to compare

Added

  • Transformer module see in documentation
  • SimpleRestController + SimpleApiRestController classes for Rest part

Changed

  • Translation module use default cache system (ArrayCache) and no more APC (performances ++)

Fixed

  • webtools Rest section
    • Authorization Bearer pb in input field (no open issue)
    • POST request for adding an instance with RestController (no open issue)
  • webtools Models section, CRUDControllers
    • Model adding or updating in modal form fail see #25
  • JsonAPI finalization

Documentation

2.1.0 release

31 Mar 22:36
Compare
Choose a tag to compare

Added

  • Themes manager with bootstrap, Semantic-ui and foundation, on a proposal from @gildonei, whom I thank for his help and his ideas.
    • AssetsManager for css,js, fonts and images integration
    • ThemesManager for css framework integration
    • Themes part in webtools interface
  • Dependency injection annotations
    • @injected inject a member in a controller defined by a dependency in config
    • @autowired inject an instance of class defined by type with @var annotation

Changed

  • dependency injection mecanism
    • controller cache for di
    • @execkey in config[di] for injections at runtime

Fixed

  • An exception is thrown In case of problem with the Database connection (in DataBase::connect method) see #12

The connection to the database must be protected by a try/catch in app/config/services.php

try{
	\Ubiquity\orm\DAO::startDatabase($config);
}catch(Exception $e){
	echo $e->getMessage();
}

Documentation

2.0.11 release

14 Mar 02:28
4ce2b8c
Compare
Choose a tag to compare

Added

  • Rest JsonAPI implementation
    • JsonApiRestController class
  • methods in UCookie
    • exists: Tests the existence of a cookie
    • setRaw: Sends a raw cookie without urlencoding the cookie value
  • method in UResponse
    • enableCORS: enables globaly CORS for a domain (this was possible before by using setAccessControl* methods)

Changed

  • method set in UCookie (parameters $secure & $httpOnly added)

Fixed

2.0.10 release

22 Feb 02:38
Compare
Choose a tag to compare

Added

  • Webtools
    • validation info in models part
  • Acceptance, functionnal and unit tests (70% coverage)

Changed

  • Webtools
    • models metadatas presentation
  • Documentation
  • Restoration of Translation class
  • Compatibility with devtools 1.1.5

2.0.9 release

21 Jan 17:25
Compare
Choose a tag to compare

Remove

  • usage of @

Restore

  • Translator class

2.0.8 release

20 Jan 01:41
Compare
Choose a tag to compare

Optimizations

  • ORM & relations oneToMany
  • apc to apcu cache for Translations
  • Router : routes array minification
  • Scrutinizer debugging : 0 bug !
  • Scrutinizer evaluation : 9.61 very good!

Modifications

  • Translator=>TranslatorManager with static methods

Requires an update of index.php

<?php
define('DS', DIRECTORY_SEPARATOR);
define('ROOT', __DIR__.DS.'app'.DS);
$config=include ROOT.'config/config.php';
require ROOT.'./../vendor/autoload.php';
require ROOT.'config/services.php';
\Ubiquity\controllers\Startup::run($config);

Starting the translatorManager in app/config/services.php:

Ubiquity\translation\TranslatorManager::start('fr_FR','en');