Skip to content

Commit

Permalink
fix missing code
Browse files Browse the repository at this point in the history
  • Loading branch information
liverbool committed Dec 21, 2017
1 parent 1db55bd commit 2829c2d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
11 changes: 10 additions & 1 deletion DependencyInjection/PhpMobReCaptchaExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,23 @@

use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
use Symfony\Component\DependencyInjection\Loader;

/**
* @author Ishmael Doss <nukboon@gmail.com>
*/
class PhpMobReCaptchaExtension extends Extension
class PhpMobReCaptchaExtension extends Extension implements PrependExtensionInterface
{
/**
* {@inheritdoc}
*/
public function getAlias()
{
return 'phpmob_recaptcha';
}

/**
* {@inheritdoc}
*/
Expand Down
1 change: 1 addition & 0 deletions Form/Type/RecaptchaType.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public function getParent()
public function buildView(FormView $view, FormInterface $form, array $options)
{
$view->vars['site_key'] = $this->siteKey;
$view->vars['theme'] = $this->theme;
}

/**
Expand Down
5 changes: 5 additions & 0 deletions PhpMobReCaptchaBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,16 @@

namespace PhpMob\ReCaptchaBundle;

use PhpMob\ReCaptchaBundle\DependencyInjection\PhpMobReCaptchaExtension;
use Symfony\Component\HttpKernel\Bundle\Bundle;

/**
* @author Ishmael Doss <nukboon@gmail.com>
*/
class PhpMobReCaptchaBundle extends Bundle
{
public function __construct()
{
$this->extension = new PhpMobReCaptchaExtension();
}
}

0 comments on commit 2829c2d

Please sign in to comment.