You can use the DependencyIndicatorInterface
https://github.com/zendframework/zf2/blob/master/library/Zend/ModuleManager/Feature/DependencyIndicatorInterface.php.
It does not load stuff automagically, but at least it stops you from
building applications that don't have all required modules or module
dependencies loaded.

Also, don't re-invent the wheel: composer has been built to solve this
specific problem, so if you need to compute dependencies yourself, you can
use composer's kernel classes.

Marco Pivetta

http://twitter.com/Ocramius

http://ocramius.github.com/


On 28 April 2013 00:33, Katalin [via Zend Framework Community] <
[email protected]> wrote:

> There is no "getDependencies" call:
> https://github.com/search?q=getDependencies+%40zendframework%2Fzf2&type=Code
>
> So, before that I tried to find some code for adding dependencies to
> modules, and I found this:
> http://stackoverflow.com/questions/10796180/advises-needed-on-zend-framework-2-modules-and-models-architecture
>  .
> Added some dependencies, disabled some modules and the project didnt work.
> But it didn't didn't work for "Cant load module X" but "Can't find class
> X".
> So, I understand most of the people work with composer, but on large
> projects it would be GREAT and maybe a requirement this thingy. Why was it
> removed?
> Thank you
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://zend-framework-community.634137.n4.nabble.com/Zf2-still-supports-getDependencies-tp4659852.html
>  To start a new topic under Zend Framework, email
> [email protected]
> To unsubscribe from Zend Framework Community, click 
> here<http://zend-framework-community.634137.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=634137&code=b2NyYW1pdXNAZ21haWwuY29tfDYzNDEzN3wxNzE0OTI1MTk4>
> .
> NAML<http://zend-framework-community.634137.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/Zf2-still-supports-getDependencies-tp4659852p4659853.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to