mirror of
https://git.d3data.de/3rdParty/captcha-module.git
synced 2024-11-05 22:53:12 +01:00
24 lines
687 B
PHP
24 lines
687 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace OxidProfessionalServices\Captcha\Application\Shared;
|
|
|
|
use OxidEsales\EshopCommunity\Internal\Container\ContainerFactory;
|
|
use OxidEsales\EshopCommunity\Internal\Framework\Module\Facade\ModuleSettingServiceInterface;
|
|
use OxidProfessionalServices\Captcha\Application\Core\Captcha;
|
|
|
|
trait Options
|
|
{
|
|
public function getOeCaptchaKey(): string
|
|
{
|
|
$bridge = ContainerFactory::getInstance()->getContainer()->get(ModuleSettingServiceInterface::class);
|
|
$key = $bridge->getString('oecaptchakey', 'oecaptcha')->toString();
|
|
if (!trim($key)) {
|
|
return Captcha::ENCRYPT_KEY;
|
|
}
|
|
|
|
return $key;
|
|
}
|
|
}
|