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

Service of type IReCaptchaValidatorFactory not registered in DIC #7

Closed
adaamz opened this issue Feb 23, 2017 · 0 comments
Closed

Service of type IReCaptchaValidatorFactory not registered in DIC #7

adaamz opened this issue Feb 23, 2017 · 0 comments

Comments

@adaamz
Copy link
Contributor

adaamz commented Feb 23, 2017

Hi,
if I follow quickstart I get this error:
Service 'application.2': Service of type Minetro\Forms\reCAPTCHA\IReCaptchaValidatorFactory needed by App\Presenters\HomepagePresenter::__construct() not found. Did you register it in configuration file?
I have to solve it manually with adding implement to that Validator service

services:
    reCAPTCHA.validator:
        implement: Minetro\Forms\reCAPTCHA\IReCaptchaValidatorFactory

The problem is in DI extension, where setup of implement is missing.

$builder->addDefinition($this->prefix('validator'))
// ->setImplement('Minetro\Forms\reCAPTCHA\IReCaptchaValidatorFactory') missing
            ->setClass('Minetro\Forms\reCAPTCHA\ReCaptchaValidator', [$config['secretKey']]);

May I create pull requests in all versions? 1.5, 1.6, ...

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

Successfully merging a pull request may close this issue.

1 participant