All notable changes to this project will be documented in this file, in reverse chronological order by release.
Feature release (minor)
COMPOSER_VENDOR_DIR
env variable is missing or empty. Previously, this could lead to scenarios where a non-existent path was used for finding the bridge autoloader.COMPOSER_VENDOR_DIR
before trying to resolve relative to where the package is installed.#63 fixes handling of dependency configuration to ensure each of delegators, initializers, and abstract factories are properly handled during configuraiton post processing. The new approach should allow delegators to work post-migration to Laminas or Mezzio.
#61 ensures configuration for delegator factories gets rewritten; the functionality broke in version 1.0.1.
#55 adds provisions to ensure that references to legacy classes/interfaces in dependency configuration always create aliases from the legacy to the new classes. Previously, we did straight replacements in the configuration, which could lead to the legacy service no longer being available. Now it will remain available.
#59 fixes the replacement rules such as to avoid replacing references to API Skeletons packages, classes, or configuration keys.
#57 fixes how references to the "zf-apigility" key are replaced. Previously, they were rewritten to "laminas-api-tools", but the correct replacement is "api-tools".
#56 provides a mechanism to add additional maps with multiple levels of namespace separator escaping, in order to ensure that all various known permutations are matched. The escaping is applied to both the original and target, to ensure that rewrites conform to the original escaping.
#56 makes changes to the replacement rules to ensure we do not replace references to "Zend" or "ZF" if they occur as subnamespaces OR as class names (formerly, we only enforced subnamespaces). Additional rules were provided for cases where one or both occur within our own packages.
#52 fixes a scenario whereby factory values were not being rewritten during configuration post processing.
#52 fixes an issue that occurs with the configuration post processor. Previously, when a service name used as a factory or invokable was encountered that referenced a legacy class, it would get rewritten. This would cause issues if the service was not exposed in the original legacy package, however, as there would now be no alias of the legacy service to the new one. This patch modifies the configuration post processor such that it now tests to see if a service name it will rename exists as an alias; if not, it also creates the alias.
#47 adds entries for rewriting the various ::*Zend()
methods exposed in the psr7bridge to ::*Laminas()
during migrations.
#46 adds a rule to rewrite the config key use_zend_loader
to use_laminas_loader
.
#45 adds a rule to exclude rewriting of view paths provided by the various Doctrine modules targeting the developer tools.
ZendServerDisk
, ZendServerShm
, ZendMonitor
).Northwoods\Container\Zend\Config
was incorrectly being renamed to Northwoods\Container\Laminas\Config
(which should not happen, as it is not a class under our control).#32 changes all references to Expressive to instead reference Mezzio.
#32 changes all references to Apigility to instead reference Laminas API Tools. The vendor becomes laminas-api-tools, the URL becomes api-tools.getlaminas.org, packages and repos are prefixed with api-tools, and namespaces become Laminas\ApiTools
.
ZendDeveloperTools
to Laminas\DeveloperTools
, and vice-versa.zenddevelopertools
string to rewrite to laminas-developer-tools
instead of laminasdevelopertools
.#24 adds a rule to never rewrite the string Doctrine\Zend
.
#23 adds a missing map for each of ZendAcl and ZendRbac, which occur in the zend-expressive-authorization-acl and zend-expressive-authorization-rbac packages, respectively.
EVENT_MERGE_CONFIG
listener (for use with MVC applications). When registered, it will post-process the configuration, replacing known Zend Framework-specific strings with their Laminas replacements. A ruleset is provided that ensures dependency configuration is rewritten in a safe manner, routing configuration is skipped, and certain top-level configuration keys are matched exactly (instead of potentially as substrings or word stems). A later release of laminas-migration will auto-register these tools in applications when possible.#21 removes rewriting of the Amazon library, as it is not moving to Laminas.
#21 removes rewriting of the GCM and APNS libraries, as they are not moving to Laminas.
RewriteRules::classRewrite()
method, as it is no longer
needed due to internal refactoring.Zend
in subnamespaces and
class names to be both more robust and simpler.Zend
in them; e.g., Zend\Expressive\ZendView\ZendViewRendererFactory
will now alias to Expressive\LaminasView\LaminasViewRendererFactory
.#11 adds maps for the Expressive router adapter packages.
#10 adds a map for the Psr7Bridge package, as it used Zend
within a subnamespace.
class_alias()
.Laminas\ZendFrameworkBridge\Autoloader
. Additionally, the new approach
provides a performance boost by using a balanced tree algorithm, ensuring
matches occur faster.Adds an autoloader file that registers with spl_autoload_register
a routine
for aliasing legacy ZF class/interface/trait names to Laminas Project
equivalents.
Adds autoloader files for aliasing legacy ZF package functions to Laminas Project equivalents.