Answer the question
In order to leave comments, you need to log in
How to specify relationship (dependencies) between components in PHP?
There are several folders with components, such as button, icon, image, text, gallery, etc.
Inside each folder is a php component template, css, js, etc.
Some components may use other components in their template (for example, a button uses an icon; or a gallery uses an image and a button).
The problem is the following - when changing, for example, a button, you need to check the compatibility of these changes in other components that use it.
Those. specifically for the button component, you need to get a list of other components that use it.
It is not logical to create such a list manually inside the button, because when creating a new component, you will have to change the old ones every time. It is more logical to prescribe a list of components used in it in a new component.
I would like to do this through phpdoc and then get a list of dependencies using the capabilities of phpstorm.
Can you tell me which way to look?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question