Skip to content

Latest commit

 

History

History
117 lines (103 loc) · 7.91 KB

CHANGELOG.md

File metadata and controls

117 lines (103 loc) · 7.91 KB

Change Log

All notable changes to this project will be documented in this file, in reverse chronological order by release. The format follows Keep a CHANGELOG as recommended by the Zend Framework Maintainers Guide. BC breaks shall be listed at the top of their respective sections. This project adheres to Semantic Versioning.

v0.3.0 - 2017-12-30

Migration from Zend Framework 2 to Zend Framework 3. This release updates the module to work with Zend Framework 3 (ZF3) projects, with intzone.com being its first deployment. Not all the components have been tested yet - it is still work in progress.

As of this point, the module will no longer maintain compatibility with Zend Framework 2 (ZF2). For ZF2 projects, please use the v0.2.0 release.

Added

  • Nothing.

Changed

  • Use Composer for installation, including specifying of individual Zend Framework components.
  • Require PHP 7.0 and above.
  • Use PSR-4 for autoloading and directory structure. Path in ZnZend\Module::getConfig() updated accordingly.
  • Short array syntax used to define arrays.
  • Replace code such as (isset($x) ? $x : $y) with null coalescing operator ??.
  • Replace Sensio Labs PHP CS Fixer with PHP_CodeSniffer for checking compliance with coding standards.
  • Replace PHPUnit with Zend\Test for tests.
  • Replace all occurrences of Zend\Stdlib\Hydrator\ArraySerializable with Zend\Hydrator\ArraySerializable.
  • Add method argument $priority to ZnZend\Listener\LogListener::attach() due to method signature change in Zend\EventManager\ListenerAggregateInterface::attach().
  • Replace $eventManager->attach($logListener); with $logListener->attach($eventManager); in commented example for the log listener in ZnZend\Module::onBootstrap().

Removed

  • ZnZend\Module no longer implements Zend\ModuleManager\Feature\AutoloaderProviderInterface nor getAutoloaderConfig().
  • Removed commented example for Zend\Mvc\ModuleRouteListener in ZnZend\Module::onBootstrap().

Fixed

  • Lots of CS fixes :P
  • Travis CI was failing due to support for PHP 5.3 and broken link for Sensio Lab's PHP CS Fixer. Now working.
  • Pass each event as a string via a loop to ZnZend\Listener\LogListener::attach() for the 2nd argument as Zend\EventManager\SharedEventManager::attach() no longer accepts an array of events for the 2nd argument.

v0.2.0 - 2015-10-14

Added

  • This CHANGELOG file.
  • BC Break Commit adds a new method fetchIn() in ZnZend\Db\MapperInterface.
  • Commit adds new method fetchIn() to ZnZend\Db\AbstractMapper as required by ZnZend\Db\MapperInterface.
  • Commit adds $webRoot optional method argument to ZnZend\View\Helper\ZnZendResizeImage::__invoke().

Changed

  • BC Break Commit adds a new argument to __invoke() for ZnZend\Mvc\Controller\Plugin\ZnZendDataTables for use in global search but changes argument order.
  • BC Break Commit adds a new argument to ZnZend\Db\Generator\EntityGenerator::generate() to allow different extending class but changes argument order.
  • BC Break Commit adds a new argument to ZnZend\Db\Generator\MapperGenerator::generate() to allow different extending class but changes argument order.
  • Commit updates ZnZend\Mvc\Controller\Plugin\ZnZendDataTables to work with both version 1.9 and 1.10 of the jQuery DataTables plugin.
  • Commit updates ZnZend\Mvc\Controller\Plugin\ZnZendDataTables to process the global search in addition to the individual column filters.
  • Commit adds annotations for priority to entity properties in ZnZend\Db\Generator\EntityGenerator.
  • Commit changes return values for elements in ZnZend\Form\View\Helper\ZnZendFormValue::render(). No more nl2br() for textarea value.
  • Commit updates ZnZend\Mvc\Controller\Plugin\ZnZendDataTables to allow specifying of search operators (DataTables 1.10 only).
  • Commit updates ZnZend\Mvc\Controller\Plugin\ZnZendDataTables to use Zend\Db\Sql\Expression when sorting columns.

Fixed

  • Commit fixes ZnZend\Listener\LogListener::logException() with a check on the existence of the exception property in the result. In some instances where the call is forwarded to an error page, the result might give a 302 status without setting the exception.
  • Commit updates ZnZend\Db\AbstractMapper::create() not to re-create the entity if $set is already of type EntityInterface.
  • Commit updates ZnZend\Mvc\Controller\Plugin\ZnZendDataTables to use the HAVING clause for global search and column filtering as column aliases are not allowed in the WHERE clause.
  • Commit fixes annotations for priority in ZnZend\Db\Generator\EntityGenerator to correctly assign larger numbers for higher priority.
  • Commit adds check for empty timestamp in ZnZend\Db\AbstractEntity::set().
  • Commit fixes the return value for the Select element in ZnZend\Form\View\Helper\ZnZendFormValue to return the corresponding option.
  • Commit fixes the mapping of the decimal and real SQL types to PHP float type in ZnZend\Db\Generator\EntityGenerator::$mapTypes.
  • Commit adds maxlength attribute for CHAR types in ZnZend\Db\Generator\EntityGenerator::generate().
  • Commit changes return value for file element in ZnZend\Form\View\Helper\ZnZendFormValue::render().

v0.1.0 - 2015-05-18

This is the first official release for the ZnZend module. Though it has been used in production for about 2 years, the developer deems it not appropriate to tag it as version 1.0.0 as the unit tests are not complete, yet the increasing use of it warrants versioning. A develop branch has been created at this point to accumulate changes before merging them into the master branch for a new release.