Skip to content

Commit d5e419c

Browse files
committed
Merge remote-tracking branch 'mainline/2.4-develop' into 2.4.1-develop
2 parents 8b38e63 + 1d7a0c3 commit d5e419c

File tree

421 files changed

+1237
-29892
lines changed

Some content is hidden

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

421 files changed

+1237
-29892
lines changed

app/code/Magento/Analytics/Test/Mftf/Data/UserRoleData.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@
149149
<item>Magento_Backend::custom</item>
150150
<item>Magento_Backend::tools</item>
151151
<item>Magento_Backend::cache</item>
152-
<item>Magento_Backend::setup_wizard</item>
153152
<item>Magento_Backup::backup</item>
154153
<item>Magento_Backup::rollback</item>
155154
<item>Magento_Indexer::index</item>

app/code/Magento/Backend/Model/Setup/MenuBuilder.php

Lines changed: 0 additions & 51 deletions
This file was deleted.

app/code/Magento/Backend/Test/Mftf/ActionGroup/AdminNavigateToSetupWizardPageActionGroup.xml

Lines changed: 0 additions & 18 deletions
This file was deleted.

app/code/Magento/Backend/Test/Mftf/Page/AdminSetupWizardPage.xml

Lines changed: 0 additions & 12 deletions
This file was deleted.

app/code/Magento/Backend/Test/Mftf/Test/AdminRedirectToAdminPanelOnLogoClickFromWizardPageTest.xml

Lines changed: 0 additions & 29 deletions
This file was deleted.

app/code/Magento/Backend/Test/Unit/Model/MenuBuilderTest.php

Lines changed: 0 additions & 50 deletions
This file was deleted.

app/code/Magento/Backend/etc/acl.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
<resource id="Magento_Backend::flush_static_files" title="Flush Static Files" translate="title" sortOrder="30" />
5454
</resource>
5555
</resource>
56-
<resource id="Magento_Backend::setup_wizard" title="Web Setup Wizard" translate="title" sortOrder="20" />
5756
</resource>
5857
<resource id="Magento_Backend::system_other_settings" title="Other Settings" translate="title" sortOrder="80" />
5958
</resource>

app/code/Magento/Backend/etc/adminhtml/di.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,6 @@
138138
<argument name="isIncludesAvailable" xsi:type="boolean">false</argument>
139139
</arguments>
140140
</type>
141-
<type name="Magento\Backend\Model\Menu\Builder">
142-
<plugin name="SetupMenuBuilder" type="Magento\Backend\Model\Setup\MenuBuilder" />
143-
</type>
144141
<type name="Magento\Config\Model\Config\Structure\ElementVisibility\ConcealInProduction">
145142
<arguments>
146143
<argument name="configs" xsi:type="array">

app/code/Magento/Backend/etc/adminhtml/menu.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,5 @@
2727
<add id="Magento_Backend::stores_attributes" title="Attributes" translate="title" module="Magento_Backend" sortOrder="40" parent="Magento_Backend::stores" resource="Magento_Backend::stores_attributes"/>
2828
<add id="Magento_Backend::other_settings" title="Other Settings" translate="title" module="Magento_Backend" sortOrder="50" parent="Magento_Backend::stores" resource="Magento_Backend::stores_other_settings"/>
2929
<add id="Magento_Backend::system_other_settings" title="Other Settings" translate="title" module="Magento_Backend" sortOrder="80" parent="Magento_Backend::system" resource="Magento_Backend::system_other_settings"/>
30-
<add id="Magento_Backend::setup_wizard" action="adminhtml/backendapp/redirect/app/setup" title="Web Setup Wizard" translate="title" module="Magento_Backend" sortOrder="80" parent="Magento_Backend::system_tools" resource="Magento_Backend::setup_wizard"/>
3130
</menu>
3231
</config>

app/code/Magento/Backend/etc/di.xml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -153,20 +153,6 @@
153153
</argument>
154154
</arguments>
155155
</type>
156-
<virtualType name="Magento\Setup\BackendApp" type="Magento\Backend\App\BackendApp">
157-
<arguments>
158-
<argument name="cookiePath" xsi:type="string">setup</argument>
159-
<argument name="startupPage" xsi:type="string">setup</argument>
160-
<argument name="aclResourceName" xsi:type="string">Magento_Backend::setup_wizard</argument>
161-
</arguments>
162-
</virtualType>
163-
<type name="Magento\Backend\App\BackendAppList">
164-
<arguments>
165-
<argument name="backendApps" xsi:type="array">
166-
<item name="setup" xsi:type="object">Magento\Setup\BackendApp</item>
167-
</argument>
168-
</arguments>
169-
</type>
170156
<type name="Magento\Framework\App\Response\HeaderManager">
171157
<arguments>
172158
<argument name="headerProviderList" xsi:type="array">

app/code/Magento/Backend/i18n/en_US.csv

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,6 @@ Attributes,Attributes
312312
"Connect Manager","Connect Manager"
313313
"Package Extensions","Package Extensions"
314314
Tools,Tools
315-
"Web Setup Wizard","Web Setup Wizard"
316315
Currency,Currency
317316
Communications,Communications
318317
Services,Services

app/code/Magento/Catalog/etc/view.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,9 @@
88
<view xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/view.xsd">
99
<vars module="Magento_Catalog">
1010
<var name="product_image_white_borders">1</var>
11+
<!-- Variable to enable lazy loading for catalog product images without borders.
12+
If you enable this setting your small size images without borders may be stretched in template.
13+
So be sure you have correct image sizes. -->
14+
<var name="enable_lazy_loading_for_images_without_borders">0</var>
1115
</vars>
1216
</view>

app/code/Magento/Catalog/view/frontend/templates/product/image.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
/** @var $block \Magento\Catalog\Block\Product\Image */
99
/** @var $escaper \Magento\Framework\Escaper */
1010
?>
11-
11+
<!--deprecated template as image_with_borders is a primary one-->
1212
<img class="photo image <?= $escaper->escapeHtmlAttr($block->getClass()) ?>"
1313
<?php foreach ($block->getCustomAttributes() as $name => $value): ?>
1414
<?= $escaper->escapeHtmlAttr($name) ?>="<?= $escaper->escapeHtmlAttr($value) ?>"

app/code/Magento/Catalog/view/frontend/templates/product/image_with_borders.phtml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@
77
<?php
88
/** @var $block \Magento\Catalog\Block\Product\Image */
99
/** @var $escaper \Magento\Framework\Escaper */
10+
/**
11+
* Enable lazy loading for images with borders and if variable enable_lazy_loading_for_images_without_borders
12+
* is enabled in view.xml. Otherwise small size images without borders may be distorted. So max-width is used for them
13+
* to prevent stretching and lazy loading does not work.
14+
*/
15+
$borders = (bool)$block->getVar('product_image_white_borders', 'Magento_Catalog');
16+
$enableLazyLoadingWithoutBorders = (bool)$block->getVar(
17+
'enable_lazy_loading_for_images_without_borders',
18+
'Magento_Catalog'
19+
);
1020
?>
1121

1222
<span class="product-image-container"
@@ -19,7 +29,12 @@
1929
<?php endforeach; ?>
2030
src="<?= $escaper->escapeUrl($block->getImageUrl()) ?>"
2131
loading="lazy"
22-
width="<?= $escaper->escapeHtmlAttr($block->getWidth()) ?>"
23-
height="<?= $escaper->escapeHtmlAttr($block->getHeight()) ?>"
32+
<?php if ($borders || $enableLazyLoadingWithoutBorders): ?>
33+
width="<?= $escaper->escapeHtmlAttr($block->getWidth()) ?>"
34+
height="<?= $escaper->escapeHtmlAttr($block->getHeight()) ?>"
35+
<?php else: ?>
36+
max-width="<?= $escaper->escapeHtmlAttr($block->getWidth()) ?>"
37+
max-height="<?= $escaper->escapeHtmlAttr($block->getHeight()) ?>"
38+
<?php endif; ?>
2439
alt="<?= $escaper->escapeHtmlAttr($block->getLabel()) ?>"/></span>
2540
</span>

app/code/Magento/Cron/etc/di.xml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,6 @@
6868
<item name="command" xsi:type="string">{magentoRoot}bin/magento cron:run | grep -v "Ran jobs by schedule" >> {magentoLog}magento.cron.log</item>
6969
<item name="optional" xsi:type="boolean">false</item>
7070
</item>
71-
<item name="cronUpdate" xsi:type="array">
72-
<item name="command" xsi:type="string">{magentoRoot}update/cron.php >> {magentoLog}update.cron.log</item>
73-
<item name="optional" xsi:type="boolean">true</item>
74-
</item>
75-
<item name="cronSetup" xsi:type="array">
76-
<item name="command" xsi:type="string">{magentoRoot}bin/magento setup:cron:run >> {magentoLog}setup.cron.log</item>
77-
<item name="optional" xsi:type="boolean">true</item>
78-
</item>
7971
</argument>
8072
</arguments>
8173
</type>

app/code/Magento/Customer/view/frontend/layout/customer_account_index.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
</action>
1515
</referenceBlock>
1616
<referenceContainer name="content">
17-
<block class="Magento\Customer\Block\Account\Dashboard\Info" name="customer_account_dashboard_info" as="info" template="Magento_Customer::account/dashboard/info.phtml" cacheable="false"/>
17+
<block class="Magento\Customer\Block\Account\Dashboard\Info" name="customer_account_dashboard_info" as="info" template="Magento_Customer::account/dashboard/info.phtml" cacheable="false">
18+
<container name="customer.account.dashboard.info.blocks" as="additional_blocks"/>
19+
</block>
1820
<block class="Magento\Customer\Block\Account\Dashboard\Address" name="customer_account_dashboard_address" as="address" template="Magento_Customer::account/dashboard/address.phtml" cacheable="false"/>
1921
</referenceContainer>
2022
</body>

app/code/Magento/Customer/view/frontend/templates/account/dashboard/info.phtml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,24 +29,26 @@
2929
</a>
3030
</div>
3131
</div>
32-
<?php if ($block->isNewsletterEnabled()) : ?>
32+
<?php if ($block->isNewsletterEnabled()): ?>
3333
<div class="box box-newsletter">
3434
<strong class="box-title">
3535
<span><?= $block->escapeHtml(__('Newsletters')) ?></span>
3636
</strong>
3737
<div class="box-content">
3838
<p>
39-
<?php if ($block->getIsSubscribed()) : ?>
39+
<?php if ($block->getIsSubscribed()): ?>
4040
<?= $block->escapeHtml(__('You are subscribed to "General Subscription".')) ?>
41-
<?php else : ?>
41+
<?php else: ?>
4242
<?= $block->escapeHtml(__('You aren\'t subscribed to our newsletter.')) ?>
4343
<?php endif; ?>
4444
</p>
4545
</div>
4646
<div class="box-actions">
47-
<a class="action edit" href="<?= $block->escapeUrl($block->getUrl('newsletter/manage')) ?>"><span><?= $block->escapeHtml(__('Edit')) ?></span></a>
47+
<a class="action edit" href="<?= $block->escapeUrl($block->getUrl('newsletter/manage')) ?>">
48+
<span><?= $block->escapeHtml(__('Edit')) ?></span></a>
4849
</div>
4950
</div>
5051
<?php endif; ?>
52+
<?= $block->getChildHtml('additional_blocks'); ?>
5153
</div>
5254
</div>

app/code/Magento/LoginAsCustomer/Model/AuthenticateCustomer.php renamed to app/code/Magento/LoginAsCustomer/Model/AuthenticateCustomerBySecret.php

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,35 +9,45 @@
99

1010
use Magento\Customer\Model\Session;
1111
use Magento\Framework\Exception\LocalizedException;
12-
use Magento\LoginAsCustomerApi\Api\AuthenticateCustomerInterface;
13-
use Magento\LoginAsCustomerApi\Api\Data\AuthenticationDataInterface;
12+
use Magento\LoginAsCustomerApi\Api\AuthenticateCustomerBySecretInterface;
13+
use Magento\LoginAsCustomerApi\Api\GetAuthenticationDataBySecretInterface;
1414

1515
/**
1616
* @inheritdoc
1717
*
1818
* @SuppressWarnings(PHPMD.CookieAndSessionMisuse)
1919
*/
20-
class AuthenticateCustomer implements AuthenticateCustomerInterface
20+
class AuthenticateCustomerBySecret implements AuthenticateCustomerBySecretInterface
2121
{
22+
/**
23+
* @var GetAuthenticationDataBySecretInterface
24+
*/
25+
private $getAuthenticationDataBySecret;
26+
2227
/**
2328
* @var Session
2429
*/
2530
private $customerSession;
2631

2732
/**
33+
* @param GetAuthenticationDataBySecretInterface $getAuthenticationDataBySecret
2834
* @param Session $customerSession
2935
*/
3036
public function __construct(
37+
GetAuthenticationDataBySecretInterface $getAuthenticationDataBySecret,
3138
Session $customerSession
3239
) {
40+
$this->getAuthenticationDataBySecret = $getAuthenticationDataBySecret;
3341
$this->customerSession = $customerSession;
3442
}
3543

3644
/**
3745
* @inheritdoc
3846
*/
39-
public function execute(AuthenticationDataInterface $authenticationData): void
47+
public function execute(string $secret): void
4048
{
49+
$authenticationData = $this->getAuthenticationDataBySecret->execute($secret);
50+
4151
if ($this->customerSession->getId()) {
4252
$this->customerSession->logout();
4353
}

app/code/Magento/LoginAsCustomer/Model/ResourceModel/DeleteExpiredAuthenticationData.php renamed to app/code/Magento/LoginAsCustomer/Model/ResourceModel/DeleteAuthenticationDataForUser.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
use Magento\Framework\App\ResourceConnection;
1111
use Magento\Framework\Stdlib\DateTime\DateTime;
1212
use Magento\LoginAsCustomerApi\Api\ConfigInterface;
13-
use Magento\LoginAsCustomerApi\Api\DeleteExpiredAuthenticationDataInterface;
13+
use Magento\LoginAsCustomerApi\Api\DeleteAuthenticationDataForUserInterface;
1414

1515
/**
1616
* @inheritdoc
1717
*/
18-
class DeleteExpiredAuthenticationData implements DeleteExpiredAuthenticationDataInterface
18+
class DeleteAuthenticationDataForUser implements DeleteAuthenticationDataForUserInterface
1919
{
2020
/**
2121
* @var ResourceConnection

0 commit comments

Comments
 (0)