Skip to content

Commit 783d706

Browse files
committed
Merge remote-tracking branch 'main_ce/develop' into static_tests
Conflicts: dev/tests/unit/testsuite/Magento/Store/Model/App/EmulationTest.php lib/internal/Magento/Framework/Validator/Factory.php
2 parents 11a30c1 + 46c48d3 commit 783d706

File tree

43 files changed

+630
-240
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+630
-240
lines changed

app/code/Magento/Backup/Model/Backup.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
namespace Magento\Backup\Model;
77

88
use Magento\Framework\App\Filesystem\DirectoryList;
9+
use Magento\Framework\Filesystem\DriverPool;
910

1011
/**
1112
* Backup file item model
@@ -293,11 +294,10 @@ public function open($write = false)
293294

294295
try {
295296
/** @var \Magento\Framework\Filesystem\Directory\WriteInterface $varDirectory */
296-
$varDirectory = $this->_filesystem->getDirectoryWrite(DirectoryList::VAR_DIR);
297+
$varDirectory = $this->_filesystem->getDirectoryWrite(DirectoryList::VAR_DIR, DriverPool::ZLIB);
297298
$this->_stream = $varDirectory->openFile(
298299
$this->_getFilePath(),
299-
$mode,
300-
\Magento\Framework\Filesystem\DriverPool::ZLIB
300+
$mode
301301
);
302302
} catch (\Magento\Framework\Filesystem\FilesystemException $e) {
303303
throw new \Magento\Framework\Backup\Exception\NotEnoughPermissions(

app/code/Magento/Customer/Model/Resource/Address.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
class Address extends \Magento\Eav\Model\Entity\AbstractEntity
1313
{
1414
/**
15-
* @var \Magento\Core\Model\Validator\Factory
15+
* @var \Magento\Framework\Validator\Factory
1616
*/
1717
protected $_validatorFactory;
1818

@@ -28,7 +28,7 @@ class Address extends \Magento\Eav\Model\Entity\AbstractEntity
2828
* @param \Magento\Framework\Locale\FormatInterface $localeFormat
2929
* @param \Magento\Eav\Model\Resource\Helper $resourceHelper
3030
* @param \Magento\Framework\Validator\UniversalFactory $universalFactory
31-
* @param \Magento\Core\Model\Validator\Factory $validatorFactory
31+
* @param \Magento\Framework\Validator\Factory $validatorFactory
3232
* @param \Magento\Customer\Model\CustomerFactory $customerFactory
3333
* @param array $data
3434
*/
@@ -39,7 +39,7 @@ public function __construct(
3939
\Magento\Framework\Locale\FormatInterface $localeFormat,
4040
\Magento\Eav\Model\Resource\Helper $resourceHelper,
4141
\Magento\Framework\Validator\UniversalFactory $universalFactory,
42-
\Magento\Core\Model\Validator\Factory $validatorFactory,
42+
\Magento\Framework\Validator\Factory $validatorFactory,
4343
\Magento\Customer\Model\CustomerFactory $customerFactory,
4444
$data = []
4545
) {

app/code/Magento/Customer/Model/Resource/Customer.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
class Customer extends \Magento\Eav\Model\Entity\AbstractEntity
1515
{
1616
/**
17-
* @var \Magento\Core\Model\Validator\Factory
17+
* @var \Magento\Framework\Validator\Factory
1818
*/
1919
protected $_validatorFactory;
2020

@@ -38,7 +38,7 @@ class Customer extends \Magento\Eav\Model\Entity\AbstractEntity
3838
* @param \Magento\Eav\Model\Resource\Helper $resourceHelper
3939
* @param \Magento\Framework\Validator\UniversalFactory $universalFactory
4040
* @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
41-
* @param \Magento\Core\Model\Validator\Factory $validatorFactory
41+
* @param \Magento\Framework\Validator\Factory $validatorFactory
4242
* @param \Magento\Framework\Stdlib\DateTime $dateTime
4343
* @param array $data
4444
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
@@ -51,7 +51,7 @@ public function __construct(
5151
\Magento\Eav\Model\Resource\Helper $resourceHelper,
5252
\Magento\Framework\Validator\UniversalFactory $universalFactory,
5353
\Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig,
54-
\Magento\Core\Model\Validator\Factory $validatorFactory,
54+
\Magento\Framework\Validator\Factory $validatorFactory,
5555
\Magento\Framework\Stdlib\DateTime $dateTime,
5656
$data = []
5757
) {

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ abstract class AbstractTemplate extends AbstractModel implements TemplateTypesIn
5656
protected $_design = null;
5757

5858
/**
59-
* @var \Magento\Core\Model\App\Emulation
59+
* @var \Magento\Store\Model\App\Emulation
6060
*/
6161
protected $_appEmulation;
6262

@@ -69,15 +69,15 @@ abstract class AbstractTemplate extends AbstractModel implements TemplateTypesIn
6969
* @param \Magento\Framework\Model\Context $context
7070
* @param \Magento\Framework\View\DesignInterface $design
7171
* @param \Magento\Framework\Registry $registry
72-
* @param \Magento\Core\Model\App\Emulation $appEmulation
72+
* @param \Magento\Store\Model\App\Emulation $appEmulation
7373
* @param \Magento\Store\Model\StoreManagerInterface $storeManager
7474
* @param array $data
7575
*/
7676
public function __construct(
7777
\Magento\Framework\Model\Context $context,
7878
\Magento\Framework\View\DesignInterface $design,
7979
\Magento\Framework\Registry $registry,
80-
\Magento\Core\Model\App\Emulation $appEmulation,
80+
\Magento\Store\Model\App\Emulation $appEmulation,
8181
\Magento\Store\Model\StoreManagerInterface $storeManager,
8282
array $data = []
8383
) {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class BackendTemplate extends Template
2121
* @param \Magento\Framework\Model\Context $context
2222
* @param \Magento\Framework\View\DesignInterface $design
2323
* @param \Magento\Framework\Registry $registry
24-
* @param \Magento\Core\Model\App\Emulation $appEmulation
24+
* @param \Magento\Store\Model\App\Emulation $appEmulation
2525
* @param \Magento\Store\Model\StoreManagerInterface $storeManager
2626
* @param \Magento\Framework\Filesystem $filesystem
2727
* @param \Magento\Framework\View\Asset\Repository $assetRepo
@@ -38,7 +38,7 @@ public function __construct(
3838
\Magento\Framework\Model\Context $context,
3939
\Magento\Framework\View\DesignInterface $design,
4040
\Magento\Framework\Registry $registry,
41-
\Magento\Core\Model\App\Emulation $appEmulation,
41+
\Magento\Store\Model\App\Emulation $appEmulation,
4242
\Magento\Store\Model\StoreManagerInterface $storeManager,
4343
\Magento\Framework\Filesystem $filesystem,
4444
\Magento\Framework\View\Asset\Repository $assetRepo,

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ class Template extends \Magento\Email\Model\AbstractTemplate implements \Magento
157157
* @param \Magento\Framework\Model\Context $context
158158
* @param \Magento\Framework\View\DesignInterface $design
159159
* @param \Magento\Framework\Registry $registry
160-
* @param \Magento\Core\Model\App\Emulation $appEmulation
160+
* @param \Magento\Store\Model\App\Emulation $appEmulation
161161
* @param \Magento\Store\Model\StoreManagerInterface $storeManager
162162
* @param \Magento\Framework\Filesystem $filesystem
163163
* @param \Magento\Framework\View\Asset\Repository $assetRepo
@@ -173,7 +173,7 @@ public function __construct(
173173
\Magento\Framework\Model\Context $context,
174174
\Magento\Framework\View\DesignInterface $design,
175175
\Magento\Framework\Registry $registry,
176-
\Magento\Core\Model\App\Emulation $appEmulation,
176+
\Magento\Store\Model\App\Emulation $appEmulation,
177177
StoreManagerInterface $storeManager,
178178
\Magento\Framework\Filesystem $filesystem,
179179
\Magento\Framework\View\Asset\Repository $assetRepo,

app/code/Magento/Newsletter/Model/Queue.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ class Queue extends \Magento\Email\Model\AbstractTemplate
115115
* @param \Magento\Framework\Model\Context $context
116116
* @param \Magento\Framework\View\DesignInterface $design
117117
* @param \Magento\Framework\Registry $registry
118-
* @param \Magento\Core\Model\App\Emulation $appEmulation
118+
* @param \Magento\Store\Model\App\Emulation $appEmulation
119119
* @param \Magento\Store\Model\StoreManagerInterface $storeManager
120120
* @param \Magento\Newsletter\Model\Template\Filter $templateFilter
121121
* @param \Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate
@@ -131,7 +131,7 @@ public function __construct(
131131
\Magento\Framework\Model\Context $context,
132132
\Magento\Framework\View\DesignInterface $design,
133133
\Magento\Framework\Registry $registry,
134-
\Magento\Core\Model\App\Emulation $appEmulation,
134+
\Magento\Store\Model\App\Emulation $appEmulation,
135135
\Magento\Store\Model\StoreManagerInterface $storeManager,
136136
\Magento\Newsletter\Model\Template\Filter $templateFilter,
137137
\Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate,

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class Template extends \Magento\Email\Model\AbstractTemplate
9494
* @param \Magento\Framework\Model\Context $context
9595
* @param \Magento\Framework\View\DesignInterface $design
9696
* @param \Magento\Framework\Registry $registry
97-
* @param \Magento\Core\Model\App\Emulation $appEmulation
97+
* @param \Magento\Store\Model\App\Emulation $appEmulation
9898
* @param \Magento\Store\Model\StoreManagerInterface $storeManager
9999
* @param \Magento\Framework\App\RequestInterface $request
100100
* @param \Magento\Newsletter\Model\Template\Filter $filter
@@ -108,7 +108,7 @@ public function __construct(
108108
\Magento\Framework\Model\Context $context,
109109
\Magento\Framework\View\DesignInterface $design,
110110
\Magento\Framework\Registry $registry,
111-
\Magento\Core\Model\App\Emulation $appEmulation,
111+
\Magento\Store\Model\App\Emulation $appEmulation,
112112
\Magento\Store\Model\StoreManagerInterface $storeManager,
113113
\Magento\Framework\App\RequestInterface $request,
114114
\Magento\Newsletter\Model\Template\Filter $filter,

app/code/Magento/Payment/Helper/Data.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class Data extends \Magento\Framework\App\Helper\AbstractHelper
5353
/**
5454
* App emulation model
5555
*
56-
* @var \Magento\Core\Model\App\Emulation
56+
* @var \Magento\Store\Model\App\Emulation
5757
*/
5858
protected $_appEmulation;
5959

@@ -69,7 +69,7 @@ class Data extends \Magento\Framework\App\Helper\AbstractHelper
6969
* @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
7070
* @param LayoutFactory $layoutFactory
7171
* @param \Magento\Payment\Model\Method\Factory $paymentMethodFactory
72-
* @param \Magento\Core\Model\App\Emulation $appEmulation
72+
* @param \Magento\Store\Model\App\Emulation $appEmulation
7373
* @param \Magento\Payment\Model\Config $paymentConfig
7474
* @param \Magento\Framework\App\Config\Initial $initialConfig
7575
*/
@@ -78,7 +78,7 @@ public function __construct(
7878
\Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig,
7979
LayoutFactory $layoutFactory,
8080
\Magento\Payment\Model\Method\Factory $paymentMethodFactory,
81-
\Magento\Core\Model\App\Emulation $appEmulation,
81+
\Magento\Store\Model\App\Emulation $appEmulation,
8282
\Magento\Payment\Model\Config $paymentConfig,
8383
\Magento\Framework\App\Config\Initial $initialConfig
8484
) {

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class Email extends \Magento\Framework\Model\AbstractModel
9393
protected $customerRepository;
9494

9595
/**
96-
* @var \Magento\Core\Model\App\Emulation
96+
* @var \Magento\Store\Model\App\Emulation
9797
*/
9898
protected $_appEmulation;
9999

@@ -115,7 +115,7 @@ class Email extends \Magento\Framework\Model\AbstractModel
115115
* @param \Magento\Store\Model\StoreManagerInterface $storeManager
116116
* @param \Magento\Customer\Api\CustomerRepositoryInterface $customerRepository
117117
* @param \Magento\Customer\Helper\View $customerHelper
118-
* @param \Magento\Core\Model\App\Emulation $appEmulation
118+
* @param \Magento\Store\Model\App\Emulation $appEmulation
119119
* @param \Magento\Framework\Mail\Template\TransportBuilder $transportBuilder
120120
* @param \Magento\Framework\Model\Resource\AbstractResource $resource
121121
* @param \Magento\Framework\Data\Collection\Db $resourceCollection
@@ -130,7 +130,7 @@ public function __construct(
130130
\Magento\Store\Model\StoreManagerInterface $storeManager,
131131
\Magento\Customer\Api\CustomerRepositoryInterface $customerRepository,
132132
\Magento\Customer\Helper\View $customerHelper,
133-
\Magento\Core\Model\App\Emulation $appEmulation,
133+
\Magento\Store\Model\App\Emulation $appEmulation,
134134
\Magento\Framework\Mail\Template\TransportBuilder $transportBuilder,
135135
\Magento\Framework\Model\Resource\AbstractResource $resource = null,
136136
\Magento\Framework\Data\Collection\Db $resourceCollection = null,

0 commit comments

Comments
 (0)