Skip to content

Commit 76759ed

Browse files
committed
Resolved conflicts
2 parents 94c2592 + 07d15f8 commit 76759ed

File tree

11 files changed

+328
-286
lines changed

11 files changed

+328
-286
lines changed

app/code/Magento/AwsS3/composer.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77
"require": {
88
"php": "~7.4.0||~8.1.0",
99
"magento/framework": "*",
10-
"magento/module-remote-storage": "*",
11-
"league/flysystem": "^2.0",
12-
"league/flysystem-aws-s3-v3": "^2.0"
10+
"magento/module-remote-storage": "*"
1311
},
1412
"type": "magento2-module",
1513
"license": [

app/code/Magento/Email/Model/Template.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ public function getProcessedTemplateSubject(array $variables)
247247
$storeId = $this->getDesignConfig()->getStore();
248248

249249
try {
250-
$processedResult = $processor->setStoreId($storeId)->filter(__($this->getTemplateSubject())->render());
250+
$processedResult = $processor->setStoreId($storeId)->filter($this->getTemplateSubject());
251251
} catch (\Exception $e) {
252252
$this->cancelDesignConfig();
253253
throw new \Magento\Framework\Exception\MailException(__($e->getMessage()), $e);

app/code/Magento/Email/Model/Template/Filter.php

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
use Magento\Framework\Filter\Template\Tokenizer\Parameter;
2424
use Magento\Framework\Filter\VariableResolverInterface;
2525
use Magento\Framework\Stdlib\StringUtils;
26+
use Magento\Framework\Translate\Inline\StateInterface;
2627
use Magento\Framework\UrlInterface;
2728
use Magento\Framework\View\Asset\ContentProcessorException;
2829
use Magento\Framework\View\Asset\ContentProcessorInterface;
@@ -53,12 +54,12 @@ class Filter extends Template
5354
/**
5455
* The name used in the {{trans}} directive
5556
*/
56-
const TRANS_DIRECTIVE_NAME = 'trans';
57+
public const TRANS_DIRECTIVE_NAME = 'trans';
5758

5859
/**
5960
* The regex to match interior portion of a {{trans "foo"}} translation directive
6061
*/
61-
const TRANS_DIRECTIVE_REGEX = '/^\s*([\'"])([^\1]*?)(?<!\\\)\1(\s.*)?$/si';
62+
public const TRANS_DIRECTIVE_REGEX = '/^\s*([\'"])([^\1]*?)(?<!\\\)\1(\s.*)?$/si';
6263

6364
/**
6465
* @var bool
@@ -119,8 +120,6 @@ class Filter extends Template
119120

120121
/**
121122
* Core store config
122-
* Variable factory
123-
*
124123
* @var VariableFactory
125124
*/
126125
protected $_variableFactory;
@@ -190,6 +189,11 @@ class Filter extends Template
190189
*/
191190
private $storeInformation;
192191

192+
/**
193+
* @var StateInterface
194+
*/
195+
private $inlineTranslationState;
196+
193197
/**
194198
* Filter constructor.
195199
* @param StringUtils $string
@@ -211,6 +215,7 @@ class Filter extends Template
211215
* @param array $variables
212216
* @param array $directiveProcessors
213217
* @param StoreInformation|null $storeInformation
218+
* @param StateInterface|null $inlineTranslationState
214219
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
215220
*/
216221
public function __construct(
@@ -232,7 +237,8 @@ public function __construct(
232237
CssInliner $cssInliner,
233238
$variables = [],
234239
array $directiveProcessors = [],
235-
?StoreInformation $storeInformation = null
240+
?StoreInformation $storeInformation = null,
241+
StateInterface $inlineTranslationState = null
236242
) {
237243
$this->_escaper = $escaper;
238244
$this->_assetRepo = $assetRepo;
@@ -251,6 +257,8 @@ public function __construct(
251257
$this->configVariables = $configVariables;
252258
$this->storeInformation = $storeInformation ?:
253259
ObjectManager::getInstance()->get(StoreInformation::class);
260+
$this->inlineTranslationState = $inlineTranslationState ?:
261+
ObjectManager::getInstance()->get(StateInterface::class);
254262
parent::__construct($string, $variables, $directiveProcessors, $variableResolver);
255263
}
256264

@@ -616,8 +624,9 @@ public function transDirective($construction)
616624
if (empty($text)) {
617625
return '';
618626
}
619-
627+
$this->inlineTranslationState->disable();
620628
$text = __($text, $params)->render();
629+
$this->inlineTranslationState->enable();
621630
return $this->applyModifiers($text, $modifiers);
622631
}
623632

app/code/Magento/RemoteStorage/composer.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
"description": "N/A",
44
"require": {
55
"php": "~7.4.0||~8.1.0",
6-
"magento/framework": "*"
6+
"magento/framework": "*",
7+
"league/flysystem": "~2.4.3",
8+
"league/flysystem-aws-s3-v3": "^2.4.3"
79
},
810
"suggest": {
911
"magento/module-backend": "*",

composer.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@
4141
"lib-libxml": "*",
4242
"colinmollenhour/cache-backend-file": "~1.4.1",
4343
"colinmollenhour/cache-backend-redis": "1.14.2",
44-
"colinmollenhour/credis": "1.12.1",
44+
"colinmollenhour/credis": "1.12.2",
4545
"colinmollenhour/php-redis-session-abstract": "~1.4.5",
4646
"composer/composer": "^1.9 || ^2.0",
4747
"elasticsearch/elasticsearch": "~7.17.0",
48-
"guzzlehttp/guzzle": "^7.3.0",
48+
"guzzlehttp/guzzle": "^7.4.2",
4949
"laminas/laminas-captcha": "^2.11",
5050
"laminas/laminas-code": "~4.5.0",
5151
"laminas/laminas-db": "^2.13.4",
@@ -67,9 +67,9 @@
6767
"laminas/laminas-stdlib": "^3.7.1",
6868
"laminas/laminas-uri": "^2.9.1",
6969
"laminas/laminas-validator": "^2.17.0",
70-
"league/flysystem": "~2.3.2",
71-
"league/flysystem-aws-s3-v3": "^2.0",
72-
"magento/composer": "~1.8.0",
70+
"league/flysystem": "~2.4.3",
71+
"league/flysystem-aws-s3-v3": "^2.4.3",
72+
"magento/composer": "1.8.x-dev as 1.8.0",
7373
"magento/composer-dependency-version-audit-plugin": "~0.1",
7474
"magento/magento-composer-installer": ">=0.3.0",
7575
"magento/zendframework1": "~1.15.0",
@@ -98,7 +98,7 @@
9898
"pdepend/pdepend": "~2.10.0",
9999
"phpmd/phpmd": "^2.9.1",
100100
"phpstan/phpstan": "~1.4.9",
101-
"phpunit/phpunit": "~9.5.18",
101+
"phpunit/phpunit": "~9.5.20",
102102
"sebastian/phpcpd": "^6.0.3",
103103
"squizlabs/php_codesniffer": "~3.6.0",
104104
"symfony/finder": "^5.2"

0 commit comments

Comments
 (0)