The Mouf PHP framework: an open-source PHP framework providing an easy way to download, install, use and reuse components, with a graphical user interface.
MIT License
54
stars
28
forks
source link
Add a validator to support loop detection in constructors #73
If an instance "a" requires an instance "b" in its constructor and the same instance "b" requires instance "a" (always in the constructor), we go in an infinite loop when querying the instance.
We need to detect this, at least in a validator.
If an instance "a" requires an instance "b" in its constructor and the same instance "b" requires instance "a" (always in the constructor), we go in an infinite loop when querying the instance. We need to detect this, at least in a validator.