Skip to content

Commit

Permalink
Merge pull request #1 from Schottii/master
Browse files Browse the repository at this point in the history
Update RecaptchaServiceProvider.php
  • Loading branch information
Mashkin committed Feb 10, 2016
2 parents d8abd78 + f252aa1 commit 9f5436f
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 9f5436f

Please sign in to comment.