Skip to content

v0.3.0 - 2017-12-30

Latest
Compare
Choose a tag to compare
@zionsg zionsg released this 29 Dec 16:04
e0817e7

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.