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
withZend\Hydrator\ArraySerializable
. - Add method argument
$priority
toZnZend\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 inZnZend\Module::onBootstrap()
.
Removed
ZnZend\Module
no longer implementsZend\ModuleManager\Feature\AutoloaderProviderInterface
norgetAutoloaderConfig()
.- Removed commented example for
Zend\Mvc\ModuleRouteListener
inZnZend\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
asZend\EventManager\SharedEventManager::attach()
no longer accepts an array of events for the 2nd argument.