We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

constructors $options

How or where I can find all possible constructor $options?

as example: $email->addValidator(new Email($options));

In this example I'm creating Email validation. I know a few of possible options, but I'm sure there's more to it.

Do you mean generally - how do you find all the arguments that the object's instructor needs? The only way to do that is look at the code, or possibly use Reflection - though it's easiest to look at the code.



461

Yea I mean in general. Oh well... I thought that maybe they have some sort hidden documentation or a method to obtain... I'll have to look in the code, it's just that it's time consuming.