Skip to content

Commit

Permalink
Update RecaptchaServiceProvider.php
Browse files Browse the repository at this point in the history
updated language management
  • Loading branch information
Schottii committed Feb 9, 2016
1 parent d8abd78 commit f252aa1
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/Mashkin/RecaptchaServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,15 @@ class RecaptchaServiceProvider implements ServiceProviderInterface

public function register (Application $app)
{
$app['recaptcha.language'] = 'en';
$app['recaptcha.streamContext'] = null;

$app['recaptcha'] = $app->share(function () use ($app) {
return new Recaptcha($app['recaptcha.sitekey'], $app['recaptcha.secret'],
$app['recaptcha.language'], $app['recaptcha.streamContext']);
$app['locale'], $app['recaptcha.streamContext']);
});
}

public function boot (Application $app)
{
$app['recaptcha.language'] = $app['locale'];
}
{}

}

0 comments on commit f252aa1

Please sign in to comment.