-
-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Laminas\I18n\Translator is a soft dependency #55
Comments
This is an optional dependency. It won't be added as direct requirement. You got same answer in laminas/laminas-validator#220 We no longer allow optional dependencies to be added, however they would remain optional until they removed by a next major release. |
This error still exists. That doesn't mean that this bug needs to be fixed immediately. But in fact it is an error that is documented here. |
Disagree: while optional dependencies are indeed problematic, they are not bugs per-se, and rather require manual intervention. Analyzing They are a concept of the past: we got rid of them from new code, but there's no easy way around this. The usage of such code with optional dependencies requires additional steps that are not "out of the box", and that is OK-ish, especially when compared with introducing BC breaks. |
I will reopen it as an improvement to track for next major. |
Bug Report
When doing an class_implements for Laminas\Router\Http\TranslatorAwareTreeRouteStack
Error: Interface "Laminas\I18n\Translator\TranslatorAwareInterface" not found
Summary
Current behavior
How to reproduce
require this package
try class_implements for Laminas\Router\Http\TranslatorAwareTreeRouteStack (interface doesnt matter)
error occues
Expected behavior
Interface should exists by adding a depencency to this package
The text was updated successfully, but these errors were encountered: