Comments (4)
One trick you can use is to audit your third-party libraries for usage of Zend Framework and/or legacy Apigility packages; the easiest way to determine that is running composer show
and seeing if any were installed. If none are being used, you can add the following to your composer.json
file:
"provide": {
"laminas/laminas-zendframework-bridge": "*"
}
(And remove any entry in the require
section, if present.)
After making your changes, run composer update
.
Essentially, the autoloading that the bridge package provides is unnecessary if there are no ZF packages installed. If you've run the migration tooling, your configuration should have been rewritten, and there's no more need for the bridge. The above essentially prevents installation of the package, fixing the issues you're seeing.
from laminas-zendframework-bridge.
@weierophinney
Should we add this hint to the migration guide?
from laminas-zendframework-bridge.
Should we add this hint to the migration guide?
Yes. To be honest, I thought we already had 😦 .
from laminas-zendframework-bridge.
Thanks @weierophinney. I had to use replace
instead of provide
in composer.json but response times are as expected now. replace
will also remove the module from modules.config.php
. As far as I am concerned this can be closed because there is a workaround.
from laminas-zendframework-bridge.
Related Issues (20)
- Dependency Dashboard
- Performance Issue with 1.6.0 HOT 17
- Unable to use with PHP 7.4 preload HOT 2
- `ConfigPostProcessor` replaces dependency service and therefore removes factory mapping HOT 3
- Tool should not rename classes using "Zend" or "ZF" in them
- Append rewrite delegator classes
- Abstract factories and lazy services "class_map" are not replaced with 1.0.2
- The bridge does not seem to work in all cases HOT 6
- Developer tools do not work for BjyAuthorize anymore
- Getting "failed to open stream: No such file or directory in /autoload.php on line 5" when loading package HOT 1
- Psalm integration
- README does not mention which ZF versions are supported
- `ConfigPostProcessor::replaceDependencyAliases` does not prevent infinite loop
- Bridge does not work with zend i18 HOT 3
- Unaccaptable performance hit HOT 19
- ClassLoader type HOT 9
- Incompatibility with composer 2.2.0RC1 HOT 10
- "ZendForm" getting replaced in 3rd party module HOT 3
- Mark component feature-complete
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laminas-zendframework-bridge.