Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extension needs Symfony service? #3

Open
josefsabl opened this issue May 29, 2018 · 2 comments
Open

Extension needs Symfony service? #3

josefsabl opened this issue May 29, 2018 · 2 comments

Comments

@josefsabl
Copy link

Excuse me, how to make this work? I installed by composer and enabled the extension. But I get

Service 'arachne.parameterValidation.handler' (type of Arachne\ParameterValidation\Rules\ValidateRuleHandler): Service of type Symfony\Component\Validator\Validator\ValidatorInterface needed by Arachne\ParameterValidation\Rules\ValidateRuleHandler::__construct() not found.

exception.

Do I need to configure Symfony Validator explicitly?

@enumag
Copy link
Member

enumag commented May 29, 2018

Yeah. To be more precise you need these extensions:

https://github.com/Arachne/ParameterValidation/blob/master/tests/integration/config/config.neon#L7-L12

@josefsabl
Copy link
Author

josefsabl commented May 31, 2018

Thank you, it helped! Kdyby\Validator was the part I was missing. Maybe it could be described somewhere in the documentation. I am a bit confused what depends on what and where to put the info. So I will shy away from creating more pull requests in that matter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants