You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use apigility (yes, I didn't upgraded yet) for REST/RPC requests from ajax calls which means I configure everything in config files.
I just needed to create custom validator which will search in db if record exists with some conditions. I was trying to create service factory for that and pass service manager (which use doctrine) to validator __construct method, but it looks like doesn't work in such way. I was trying to do like this:
@settermjd
The entire description for the validator plugin manager is missing and a cookbook recipe, how to register a custom validator in a laminas-mvc based application.
Feature Request
Summary
I use apigility (yes, I didn't upgraded yet) for REST/RPC requests from ajax calls which means I configure everything in config files.
I just needed to create custom validator which will search in db if record exists with some conditions. I was trying to create service factory for that and pass service manager (which use doctrine) to validator
__construct
method, but it looks like doesn't work in such way. I was trying to do like this:but it doesn't work.
I didn't find anything on docs about that I should create validator factory and put it into config like this:
It would be great to keep such hint in docs. If I missed this in docs, then sorry about that.
The text was updated successfully, but these errors were encountered: