Skip to content

Commit

Permalink
Merge branch '5.12' into 5.x
Browse files Browse the repository at this point in the history
  • Loading branch information
Davidmattei committed Dec 19, 2023
2 parents 8800dd4 + 4b26176 commit b0301d0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

use EMS\CommonBundle\Json\JsonMenuNested;
use EMS\CommonBundle\Json\JsonMenuNestedException;
use EMS\CommonBundle\Service\ElasticaService;
use EMS\CoreBundle\Core\Component\JsonMenuNested\Config\JsonMenuNestedConfig;
use EMS\CoreBundle\Core\Component\JsonMenuNested\Config\JsonMenuNestedNode;
use EMS\CoreBundle\Core\Component\JsonMenuNested\Template\Context\JsonMenuNestedRenderContext;
Expand All @@ -22,7 +23,8 @@ class JsonMenuNestedService
public function __construct(
private readonly JsonMenuNestedTemplateFactory $jsonMenuNestedTemplateFactory,
private readonly RevisionService $revisionService,
private readonly UserService $userService
private readonly UserService $userService,
private readonly ElasticaService $elasticaService
) {
}

Expand Down Expand Up @@ -163,5 +165,6 @@ private function saveStructure(JsonMenuNestedConfig $config): void
(new PropertyAccessor())->setValue($rawData, $path, $structure);

$this->revisionService->updateRawData($config->revision, $rawData, $username);
$this->elasticaService->refresh($config->revision->giveContentType()->giveEnvironment()->getAlias());
}
}
1 change: 1 addition & 0 deletions EMS/core-bundle/src/Resources/config/core.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
<argument type="service" id="emsco.core.json_menu_nested.template_factory" />
<argument type="service" id="ems.service.revision" />
<argument type="service" id="ems.service.user" />
<argument type="service" id="ems_common.service.elastica" />
</service>

<!-- Media Library -->
Expand Down

0 comments on commit b0301d0

Please sign in to comment.