Skip to content

Commit

Permalink
Fix greggilbert#39 - standardize interface names
Browse files Browse the repository at this point in the history
  • Loading branch information
greggilbert committed Dec 14, 2014
1 parent defb0cb commit 982d271
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Greggilbert/Recaptcha/RecaptchaServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function addValidator()

$validator::extend('recaptcha', function($attribute, $value, $parameters)
{
$captcha = app('Greggilbert\Recaptcha\CaptchaInterface');
$captcha = app('Greggilbert\Recaptcha\RecaptchaInterface');
$challenge = app('Input')->get($captcha->getResponseKey());

return $captcha->check($challenge, $value);
Expand Down Expand Up @@ -69,7 +69,7 @@ public function addFormMacro()
$data['lang'] = $mergedOptions['lang'];
}

$view = 'recaptcha::' . app('Greggilbert\Recaptcha\CaptchaInterface')->getTemplate();
$view = 'recaptcha::' . app('Greggilbert\Recaptcha\RecaptchaInterface')->getTemplate();

$configTemplate = app('config')->get('recaptcha::template', '');

Expand All @@ -94,7 +94,7 @@ public function addFormMacro()
*/
public function register()
{
$this->app->bind('Greggilbert\Recaptcha\CaptchaInterface', function()
$this->app->bind('Greggilbert\Recaptcha\RecaptchaInterface', function()
{
if(app('config')->get('recaptcha::version', false) === 2 || app('config')->get('recaptcha::v2', false))
{
Expand Down

0 comments on commit 982d271

Please sign in to comment.