Skip to content

Commit

Permalink
Merge pull request #3 from Schottii/2.0
Browse files Browse the repository at this point in the history
Adds support for silex 2
  • Loading branch information
Mashkin committed Jul 23, 2017
2 parents 9f5436f + 2b41fb5 commit d5e0360
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Mashkin/RecaptchaServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,23 @@

namespace Mashkin;

use Silex\Application;
use Silex\ServiceProviderInterface;
use Pimple\Container;
use Pimple\ServiceProviderInterface;

class RecaptchaServiceProvider implements ServiceProviderInterface
{

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

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

public function boot (Application $app)
public function boot (Container $app)
{}

}

0 comments on commit d5e0360

Please sign in to comment.