Skip to content

Commit 4d49949

Browse files
author
Morgan Pichat
committed
Rename the component Head to HeadTag
1 parent 6bc36aa commit 4d49949

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

phpstan-tmp-legacy-layout-baseline.neon

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,27 @@ parameters:
33
-
44
message: "#^Class Shop is forbidden, No legacy calls inside the prestashop bundle\\. Please create an interface and an adapter if you need to\\.$#"
55
count: 2
6-
path: src/PrestaShopBundle/Twig/Component/Head.php
6+
path: src/PrestaShopBundle/Twig/Component/HeadTag.php
77

88
-
99
message: "#^Namespace Context is forbidden, No legacy calls inside the prestashop bundle\\. Please create an interface and an adapter if you need to\\.$#"
1010
count: 1
11-
path: src/PrestaShopBundle/Twig/Component/Head.php
11+
path: src/PrestaShopBundle/Twig/Component/HeadTag.php
1212

1313
-
1414
message: "#^Namespace Media is forbidden, No legacy calls inside the prestashop bundle\\. Please create an interface and an adapter if you need to\\.$#"
1515
count: 3
16-
path: src/PrestaShopBundle/Twig/Component/Head.php
16+
path: src/PrestaShopBundle/Twig/Component/HeadTag.php
1717

1818
-
1919
message: "#^Namespace Shop is forbidden, No legacy calls inside the prestashop bundle\\. Please create an interface and an adapter if you need to\\.$#"
2020
count: 3
21-
path: src/PrestaShopBundle/Twig/Component/Head.php
21+
path: src/PrestaShopBundle/Twig/Component/HeadTag.php
2222

2323
-
2424
message: "#^Namespace Tools is forbidden, No legacy calls inside the prestashop bundle\\. Please create an interface and an adapter if you need to\\.$#"
2525
count: 3
26-
path: src/PrestaShopBundle/Twig/Component/Head.php
26+
path: src/PrestaShopBundle/Twig/Component/HeadTag.php
2727

2828
-
2929
message: "#^Class Link is forbidden, No legacy calls inside the prestashop bundle\\. Please create an interface and an adapter if you need to\\.$#"

src/PrestaShopBundle/Resources/views/Admin/Layout/default_layout.html.twig

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
{% block core_javascript %}
3434
{% include '@PrestaShop/Admin/Layout/core_javascript.html.twig' %}
3535
{% endblock %}
36-
{{ component('Head', { metaTitle: metaTitle }) }}
36+
{{ component('HeadTag', { metaTitle: metaTitle }) }}
3737
{% block stylesheets %}
3838
{% include '@PrestaShop/Admin/Layout/stylesheets.html.twig' %}
3939
{% endblock %}

src/PrestaShopBundle/Resources/views/Admin/Layout/light_layout.html.twig

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
{% block core_javascript %}
3434
{% include '@PrestaShop/Admin/Layout/core_javascript.html.twig' %}
3535
{% endblock %}
36-
{{ component('Head', { metaTitle: metaTitle }) }}
36+
{{ component('HeadTag', { metaTitle: metaTitle }) }}
3737
{% block stylesheets %}
3838
{% include '@PrestaShop/Admin/Layout/stylesheets.html.twig' %}
3939
{% endblock %}

src/PrestaShopBundle/Twig/Component/Head.php src/PrestaShopBundle/Twig/Component/HeadTag.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
use Symfony\UX\TwigComponent\Attribute\AsTwigComponent;
4343
use Tools;
4444

45-
#[AsTwigComponent(template: '@PrestaShop/Admin/Component/Layout/head.html.twig')]
46-
class Head
45+
#[AsTwigComponent(template: '@PrestaShop/Admin/Component/Layout/head_tag.html.twig')]
46+
class HeadTag
4747
{
4848
private string $metaTitle;
4949

0 commit comments

Comments
 (0)