From f7a70f3f4bc3ad0387aea4519435435139d715df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Fr=C3=A9mont?= Date: Fri, 4 Oct 2024 16:02:51 +0200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Dmitri Perunov --- src/AdminUi/config/services/twig/extension.php | 2 +- .../Functional/Twig/Extension/RedirectPathExtensionTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AdminUi/config/services/twig/extension.php b/src/AdminUi/config/services/twig/extension.php index c6521d09..d5a01d63 100644 --- a/src/AdminUi/config/services/twig/extension.php +++ b/src/AdminUi/config/services/twig/extension.php @@ -18,7 +18,7 @@ return function (ContainerConfigurator $configurator): void { $services = $configurator->services(); - $services->set('sylius_twig_extra.twig.extension.redirect_path', RedirectPathExtension::class) + $services->set('sylius_admin_ui.twig.extension.redirect_path', RedirectPathExtension::class) ->args([ service('router'), service('sylius.grid.filter_storage')->nullOnInvalid(), diff --git a/src/AdminUi/tests/Functional/Twig/Extension/RedirectPathExtensionTest.php b/src/AdminUi/tests/Functional/Twig/Extension/RedirectPathExtensionTest.php index a87ef6f7..135f1e80 100644 --- a/src/AdminUi/tests/Functional/Twig/Extension/RedirectPathExtensionTest.php +++ b/src/AdminUi/tests/Functional/Twig/Extension/RedirectPathExtensionTest.php @@ -30,7 +30,7 @@ protected function setUp(): void $request->setSession($session); $container->get('request_stack')->push($request); - $this->redirectPathExtension = $container->get('sylius_twig_extra.twig.extension.redirect_path'); + $this->redirectPathExtension = $container->get('sylius_admin_ui.twig.extension.redirect_path'); $container->get('sylius.grid.filter_storage')->set(['criteria' => ['enabled' => true]]); }