* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ namespace PrestaShop\PrestaShop\Core\Domain\CustomerService\QueryHandler; use PrestaShop\PrestaShop\Core\ConfigurationInterface; use PrestaShop\PrestaShop\Core\Domain\CustomerService\Query\GetCustomerServiceSignature; /** * @internal */ final class GetCustomerServiceSignatureHandler implements GetCustomerServiceSignatureHandlerInterface { /** * @var ConfigurationInterface */ private $configuration; /** * @param ConfigurationInterface $configuration */ public function __construct(ConfigurationInterface $configuration) { $this->configuration = $configuration; } /** * {@inheritdoc} */ public function handle(GetCustomerServiceSignature $query) { $signature = $this->configuration->get('PS_CUSTOMER_SERVICE_SIGNATURE'); return $signature[$query->getLanguageId()->getValue()]; } }