Newscoop\NewscoopBundle\Form\Type\RecaptchaType::__construct PHP Метод

__construct() публичный Метод

Construct.
public __construct ( Symfony\Component\DependencyInjection\ContainerInterface $container )
$container Symfony\Component\DependencyInjection\ContainerInterface An ContainerInterface instance
    public function __construct(ContainerInterface $container)
    {
        $preferensService = $container->get('system_preferences_service');
        $this->publicKey = $preferensService->get('RecaptchaPublicKey');
        $this->secure = $preferensService->get('RecaptchaSecure') == 'Y' ? true : false;
        $this->enabled = $container->getParameter('ewz_recaptcha.enabled');
    }
RecaptchaType