Skip to content

Commit eb5d140

Browse files
Merge branch 'develop' of github.com:roadiz/skeleton into develop
2 parents 0e5e3c9 + 5377feb commit eb5d140

File tree

7 files changed

+17
-18
lines changed

7 files changed

+17
-18
lines changed

composer_dev.json.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"ext-ctype": "*",
1010
"ext-iconv": "*",
1111
"ext-json": "*",
12+
"liip/monitor-bundle": "^2.22",
1213
"nelmio/cors-bundle": "^2.4",
1314
"roadiz/cms-pack": "dev-develop",
1415
"sentry/sentry-symfony": "^4.13",

src/GeneratedEntity/NSMenu.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
use Symfony\Component\Serializer\Annotation as SymfonySerializer;
1414
use Gedmo\Mapping\Annotation as Gedmo;
1515
use Doctrine\ORM\Mapping as ORM;
16-
use ApiPlatform\Core\Annotation\ApiFilter;
17-
use ApiPlatform\Core\Bridge\Doctrine\Orm\Filter as OrmFilter;
18-
use ApiPlatform\Core\Serializer\Filter\PropertyFilter;
16+
use ApiPlatform\Metadata\ApiFilter;
17+
use ApiPlatform\Doctrine\Orm\Filter as OrmFilter;
18+
use ApiPlatform\Serializer\Filter\PropertyFilter;
1919

2020
/**
2121
* DO NOT EDIT

src/GeneratedEntity/NSMenuLink.php

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
use Symfony\Component\Serializer\Annotation as SymfonySerializer;
1414
use Gedmo\Mapping\Annotation as Gedmo;
1515
use Doctrine\ORM\Mapping as ORM;
16-
use ApiPlatform\Core\Annotation\ApiFilter;
17-
use ApiPlatform\Core\Bridge\Doctrine\Orm\Filter as OrmFilter;
18-
use ApiPlatform\Core\Serializer\Filter\PropertyFilter;
16+
use ApiPlatform\Metadata\ApiFilter;
17+
use ApiPlatform\Doctrine\Orm\Filter as OrmFilter;
18+
use ApiPlatform\Serializer\Filter\PropertyFilter;
1919

2020
/**
2121
* DO NOT EDIT
@@ -35,6 +35,7 @@ class NSMenuLink extends \RZ\Roadiz\CoreBundle\Entity\NodesSources
3535
#[
3636
SymfonySerializer\SerializedName(serializedName: "linkExternalUrl"),
3737
SymfonySerializer\Groups(["nodes_sources", "nodes_sources_default"]),
38+
\ApiPlatform\Metadata\ApiProperty(description: "URL externe"),
3839
SymfonySerializer\MaxDepth(2),
3940
Gedmo\Versioned,
4041
ORM\Column(
@@ -76,13 +77,15 @@ public function setLinkExternalUrl(?string $linkExternalUrl): static
7677
* linkInternalReferenceSources NodesSources direct field buffer.
7778
* (Virtual field, this var is a buffer)
7879
*
80+
* Node reference (internal link).
7981
* Default values: Page
8082
* @var \RZ\Roadiz\CoreBundle\Entity\NodesSources[]|null
8183
*/
8284
#[
8385
Serializer\Exclude,
8486
SymfonySerializer\SerializedName(serializedName: "linkInternalReference"),
8587
SymfonySerializer\Groups(["nodes_sources", "nodes_sources_default", "nodes_sources_nodes"]),
88+
\ApiPlatform\Metadata\ApiProperty(description: "Node reference (internal link)"),
8689
SymfonySerializer\MaxDepth(2)
8790
]
8891
private ?array $linkInternalReferenceSources = null;
@@ -100,16 +103,12 @@ public function setLinkExternalUrl(?string $linkExternalUrl): static
100103
public function getLinkInternalReferenceSources(): array
101104
{
102105
if (null === $this->linkInternalReferenceSources) {
103-
if (
104-
null !== $this->objectManager &&
105-
null !== $this->getNode() &&
106-
null !== $this->getNode()->getNodeType()
107-
) {
106+
if (null !== $this->objectManager) {
108107
$this->linkInternalReferenceSources = $this->objectManager
109108
->getRepository(\RZ\Roadiz\CoreBundle\Entity\NodesSources::class)
110-
->findByNodesSourcesAndFieldAndTranslation(
109+
->findByNodesSourcesAndFieldNameAndTranslation(
111110
$this,
112-
$this->getNode()->getNodeType()->getFieldByName("link_internal_reference")
111+
'link_internal_reference'
113112
);
114113
} else {
115114
$this->linkInternalReferenceSources = [];

src/GeneratedEntity/Repository/NSMenuLinkRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
use Doctrine\Persistence\ManagerRegistry;
1212
use RZ\Roadiz\CoreBundle\Preview\PreviewResolverInterface;
1313
use RZ\Roadiz\CoreBundle\SearchEngine\NodeSourceSearchHandlerInterface;
14-
use Symfony\Component\Security\Core\Security;
14+
use Symfony\Bundle\SecurityBundle\Security;
1515
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
1616

1717
/**

src/GeneratedEntity/Repository/NSMenuRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
use Doctrine\Persistence\ManagerRegistry;
1212
use RZ\Roadiz\CoreBundle\Preview\PreviewResolverInterface;
1313
use RZ\Roadiz\CoreBundle\SearchEngine\NodeSourceSearchHandlerInterface;
14-
use Symfony\Component\Security\Core\Security;
14+
use Symfony\Bundle\SecurityBundle\Security;
1515
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
1616

1717
/**

src/Resources/node-types/Menu.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"display_name": "Menu",
55
"visible": true,
66
"publishable": false,
7+
"attributable": false,
78
"reachable": false,
89
"hiding_nodes": false,
910
"hiding_non_reachable_nodes": false,
@@ -15,7 +16,6 @@
1516
"default_values": "Page, Menu, MenuLink",
1617
"type": 16,
1718
"expanded": false,
18-
"node_type_name": "Menu",
1919
"universal": false,
2020
"exclude_from_search": false,
2121
"excluded_from_serialization": false,

src/Resources/node-types/MenuLink.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"display_name": "Lien du menu",
55
"visible": false,
66
"publishable": false,
7+
"attributable": false,
78
"reachable": false,
89
"hiding_nodes": false,
910
"hiding_non_reachable_nodes": false,
@@ -14,7 +15,6 @@
1415
"label": "URL externe",
1516
"type": 0,
1617
"expanded": false,
17-
"node_type_name": "MenuLink",
1818
"universal": false,
1919
"exclude_from_search": true,
2020
"excluded_from_serialization": false,
@@ -28,7 +28,6 @@
2828
"default_values": "Page",
2929
"type": 13,
3030
"expanded": false,
31-
"node_type_name": "MenuLink",
3231
"universal": true,
3332
"exclude_from_search": false,
3433
"excluded_from_serialization": false,

0 commit comments

Comments
 (0)