zendframework / zend-i18n

I18n component from Zend Framework
BSD 3-Clause "New" or "Revised" License
65 stars 49 forks source link

[i18n] Package requires Servicemanager but is mentioned as optional in the composer.json #50

Closed GeeH closed 7 years ago

GeeH commented 8 years ago

This issue has been moved from the zendframework repository as part of the bug migration program as outlined here - http://framework.zend.com/blog/2016-04-11-issue-closures.html


Original Issue: https://api.github.com/repos/zendframework/zendframework/issues/7547 User: @mvriel Created On: 2015-05-25T07:00:20Z Updated At: 2015-11-06T21:53:39Z Body When I want to use the I18n component provided by Zend Framework I am required to also add Zend Servicemanager but that is not listed as a "required" dependency but rather as a suggestion.

I would prefer not to install the Servicemanager (I have no use for it) but at the least it should be in the "required" section of the composer.json


sbarre commented 7 years ago

Has anyone figured out a solution for this? Should I just install the ServiceManager?

weierophinney commented 7 years ago

@sbarre there's nothing to solve.

The reason zend-servicemanager is not marked as required is because requirements will be based on what aspects of the component you consume.

Dependencies will be based on what you consume. So, yes, if you are using the translator, you will need to install zend-servicemanager as well, if you are not already.

sbarre commented 7 years ago

Thanks for the clarification, I didn't consider the fact that one could use this without the translator.