Skip to content

Commit 3ddaced

Browse files
author
Ievgen Shakhsuvarov
committed
Merge branch 'develop' of https://github.corp.ebay.com/magento2/magento2ce into MAGETWO-32078-CheckoutAgreements
2 parents b0e63bd + cc38a64 commit 3ddaced

File tree

38 files changed

+139
-217
lines changed

38 files changed

+139
-217
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
@@ -292,11 +293,10 @@ public function open($write = false)
292293

293294
try {
294295
/** @var \Magento\Framework\Filesystem\Directory\WriteInterface $varDirectory */
295-
$varDirectory = $this->_filesystem->getDirectoryWrite(DirectoryList::VAR_DIR);
296+
$varDirectory = $this->_filesystem->getDirectoryWrite(DirectoryList::VAR_DIR, DriverPool::ZLIB);
296297
$this->_stream = $varDirectory->openFile(
297298
$this->_getFilePath(),
298-
$mode,
299-
\Magento\Framework\Filesystem\DriverPool::ZLIB
299+
$mode
300300
);
301301
} catch (\Magento\Framework\Filesystem\FilesystemException $e) {
302302
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
@@ -13,7 +13,7 @@
1313
class Customer extends \Magento\Eav\Model\Entity\AbstractEntity
1414
{
1515
/**
16-
* @var \Magento\Core\Model\Validator\Factory
16+
* @var \Magento\Framework\Validator\Factory
1717
*/
1818
protected $_validatorFactory;
1919

@@ -37,7 +37,7 @@ class Customer extends \Magento\Eav\Model\Entity\AbstractEntity
3737
* @param \Magento\Eav\Model\Resource\Helper $resourceHelper
3838
* @param \Magento\Framework\Validator\UniversalFactory $universalFactory
3939
* @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
40-
* @param \Magento\Core\Model\Validator\Factory $validatorFactory
40+
* @param \Magento\Framework\Validator\Factory $validatorFactory
4141
* @param \Magento\Framework\Stdlib\DateTime $dateTime
4242
* @param array $data
4343
*/
@@ -49,7 +49,7 @@ public function __construct(
4949
\Magento\Eav\Model\Resource\Helper $resourceHelper,
5050
\Magento\Framework\Validator\UniversalFactory $universalFactory,
5151
\Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig,
52-
\Magento\Core\Model\Validator\Factory $validatorFactory,
52+
\Magento\Framework\Validator\Factory $validatorFactory,
5353
\Magento\Framework\Stdlib\DateTime $dateTime,
5454
$data = []
5555
) {

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
@@ -114,7 +114,7 @@ class Queue extends \Magento\Email\Model\AbstractTemplate
114114
* @param \Magento\Framework\Model\Context $context
115115
* @param \Magento\Framework\View\DesignInterface $design
116116
* @param \Magento\Framework\Registry $registry
117-
* @param \Magento\Core\Model\App\Emulation $appEmulation
117+
* @param \Magento\Store\Model\App\Emulation $appEmulation
118118
* @param \Magento\Store\Model\StoreManagerInterface $storeManager
119119
* @param \Magento\Newsletter\Model\Template\Filter $templateFilter
120120
* @param \Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate
@@ -129,7 +129,7 @@ public function __construct(
129129
\Magento\Framework\Model\Context $context,
130130
\Magento\Framework\View\DesignInterface $design,
131131
\Magento\Framework\Registry $registry,
132-
\Magento\Core\Model\App\Emulation $appEmulation,
132+
\Magento\Store\Model\App\Emulation $appEmulation,
133133
\Magento\Store\Model\StoreManagerInterface $storeManager,
134134
\Magento\Newsletter\Model\Template\Filter $templateFilter,
135135
\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
@@ -93,7 +93,7 @@ class Template extends \Magento\Email\Model\AbstractTemplate
9393
* @param \Magento\Framework\Model\Context $context
9494
* @param \Magento\Framework\View\DesignInterface $design
9595
* @param \Magento\Framework\Registry $registry
96-
* @param \Magento\Core\Model\App\Emulation $appEmulation
96+
* @param \Magento\Store\Model\App\Emulation $appEmulation
9797
* @param \Magento\Store\Model\StoreManagerInterface $storeManager
9898
* @param \Magento\Framework\App\RequestInterface $request
9999
* @param \Magento\Newsletter\Model\Template\Filter $filter
@@ -106,7 +106,7 @@ public function __construct(
106106
\Magento\Framework\Model\Context $context,
107107
\Magento\Framework\View\DesignInterface $design,
108108
\Magento\Framework\Registry $registry,
109-
\Magento\Core\Model\App\Emulation $appEmulation,
109+
\Magento\Store\Model\App\Emulation $appEmulation,
110110
\Magento\Store\Model\StoreManagerInterface $storeManager,
111111
\Magento\Framework\App\RequestInterface $request,
112112
\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
@@ -52,7 +52,7 @@ class Data extends \Magento\Framework\App\Helper\AbstractHelper
5252
/**
5353
* App emulation model
5454
*
55-
* @var \Magento\Core\Model\App\Emulation
55+
* @var \Magento\Store\Model\App\Emulation
5656
*/
5757
protected $_appEmulation;
5858

@@ -68,7 +68,7 @@ class Data extends \Magento\Framework\App\Helper\AbstractHelper
6868
* @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
6969
* @param LayoutFactory $layoutFactory
7070
* @param \Magento\Payment\Model\Method\Factory $paymentMethodFactory
71-
* @param \Magento\Core\Model\App\Emulation $appEmulation
71+
* @param \Magento\Store\Model\App\Emulation $appEmulation
7272
* @param \Magento\Payment\Model\Config $paymentConfig
7373
* @param \Magento\Framework\App\Config\Initial $initialConfig
7474
*/
@@ -77,7 +77,7 @@ public function __construct(
7777
\Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig,
7878
LayoutFactory $layoutFactory,
7979
\Magento\Payment\Model\Method\Factory $paymentMethodFactory,
80-
\Magento\Core\Model\App\Emulation $appEmulation,
80+
\Magento\Store\Model\App\Emulation $appEmulation,
8181
\Magento\Payment\Model\Config $paymentConfig,
8282
\Magento\Framework\App\Config\Initial $initialConfig
8383
) {

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

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

9494
/**
95-
* @var \Magento\Core\Model\App\Emulation
95+
* @var \Magento\Store\Model\App\Emulation
9696
*/
9797
protected $_appEmulation;
9898

@@ -114,7 +114,7 @@ class Email extends \Magento\Framework\Model\AbstractModel
114114
* @param \Magento\Store\Model\StoreManagerInterface $storeManager
115115
* @param \Magento\Customer\Api\CustomerRepositoryInterface $customerRepository
116116
* @param \Magento\Customer\Helper\View $customerHelper
117-
* @param \Magento\Core\Model\App\Emulation $appEmulation
117+
* @param \Magento\Store\Model\App\Emulation $appEmulation
118118
* @param \Magento\Framework\Mail\Template\TransportBuilder $transportBuilder
119119
* @param \Magento\Framework\Model\Resource\AbstractResource $resource
120120
* @param \Magento\Framework\Data\Collection\Db $resourceCollection
@@ -128,7 +128,7 @@ public function __construct(
128128
\Magento\Store\Model\StoreManagerInterface $storeManager,
129129
\Magento\Customer\Api\CustomerRepositoryInterface $customerRepository,
130130
\Magento\Customer\Helper\View $customerHelper,
131-
\Magento\Core\Model\App\Emulation $appEmulation,
131+
\Magento\Store\Model\App\Emulation $appEmulation,
132132
\Magento\Framework\Mail\Template\TransportBuilder $transportBuilder,
133133
\Magento\Framework\Model\Resource\AbstractResource $resource = null,
134134
\Magento\Framework\Data\Collection\Db $resourceCollection = null,

0 commit comments

Comments
 (0)