diff --git a/src/Sylius/Bundle/TaxationBundle/composer.json b/src/Sylius/Bundle/TaxationBundle/composer.json
index d43d61830b..a00738ba0e 100644
--- a/src/Sylius/Bundle/TaxationBundle/composer.json
+++ b/src/Sylius/Bundle/TaxationBundle/composer.json
@@ -42,7 +42,6 @@
"require-dev": {
"doctrine/doctrine-bundle": "^2.3.1",
"doctrine/orm": "^2.13",
- "friendsofsymfony/rest-bundle": "^3.0",
"jms/serializer-bundle": "^5.0",
"matthiasnoback/symfony-dependency-injection-test": "^5.1",
"phpspec/phpspec": "^7.2",
diff --git a/src/Sylius/Bundle/TaxationBundle/test/app/AppKernel.php b/src/Sylius/Bundle/TaxationBundle/test/app/AppKernel.php
index 4bbce4c830..d70bf457b3 100644
--- a/src/Sylius/Bundle/TaxationBundle/test/app/AppKernel.php
+++ b/src/Sylius/Bundle/TaxationBundle/test/app/AppKernel.php
@@ -21,7 +21,6 @@ class AppKernel extends Kernel
return [
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new winzou\Bundle\StateMachineBundle\winzouStateMachineBundle(),
- new FOS\RestBundle\FOSRestBundle(),
new JMS\SerializerBundle\JMSSerializerBundle(),
new BabDev\PagerfantaBundle\BabDevPagerfantaBundle(),
new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
diff --git a/src/Sylius/Bundle/TaxationBundle/test/app/config/config.yml b/src/Sylius/Bundle/TaxationBundle/test/app/config/config.yml
index a772377f69..fc332ed6f0 100644
--- a/src/Sylius/Bundle/TaxationBundle/test/app/config/config.yml
+++ b/src/Sylius/Bundle/TaxationBundle/test/app/config/config.yml
@@ -29,12 +29,3 @@ doctrine:
entity_managers:
default:
auto_mapping: true
-
-fos_rest:
- view:
- formats:
- json: true
- empty_content: 204
- format_listener:
- rules:
- - { path: '^/', priorities: ['json'], fallback_format: json, prefer_extension: true }
diff --git a/src/Sylius/Bundle/TaxonomyBundle/Tests/Functional/app/AppKernel.php b/src/Sylius/Bundle/TaxonomyBundle/Tests/Functional/app/AppKernel.php
index 4a5ff4fb26..fb46f4139e 100644
--- a/src/Sylius/Bundle/TaxonomyBundle/Tests/Functional/app/AppKernel.php
+++ b/src/Sylius/Bundle/TaxonomyBundle/Tests/Functional/app/AppKernel.php
@@ -21,7 +21,6 @@ class AppKernel extends Kernel
return [
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new winzou\Bundle\StateMachineBundle\winzouStateMachineBundle(),
- new FOS\RestBundle\FOSRestBundle(),
new JMS\SerializerBundle\JMSSerializerBundle(),
new BabDev\PagerfantaBundle\BabDevPagerfantaBundle(),
new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
diff --git a/src/Sylius/Bundle/TaxonomyBundle/composer.json b/src/Sylius/Bundle/TaxonomyBundle/composer.json
index 9bbd4f0df7..c8ca26e3e2 100644
--- a/src/Sylius/Bundle/TaxonomyBundle/composer.json
+++ b/src/Sylius/Bundle/TaxonomyBundle/composer.json
@@ -41,7 +41,6 @@
"require-dev": {
"doctrine/doctrine-bundle": "^2.3.1",
"doctrine/orm": "^2.13",
- "friendsofsymfony/rest-bundle": "^3.0",
"jms/serializer-bundle": "^5.0",
"phpspec/phpspec": "^7.2",
"phpunit/phpunit": "^9.5",
diff --git a/src/Sylius/Bundle/UserBundle/Controller/SecurityController.php b/src/Sylius/Bundle/UserBundle/Controller/SecurityController.php
index 4f058f3c09..b317105167 100644
--- a/src/Sylius/Bundle/UserBundle/Controller/SecurityController.php
+++ b/src/Sylius/Bundle/UserBundle/Controller/SecurityController.php
@@ -14,18 +14,19 @@ declare(strict_types=1);
namespace Sylius\Bundle\UserBundle\Controller;
use Sylius\Bundle\UserBundle\Form\Type\UserLoginType;
-use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Form\FormFactoryInterface;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Security\Http\Authentication\AuthenticationUtils;
+use Twig\Environment;
use Webmozart\Assert\Assert;
-class SecurityController extends AbstractController
+readonly class SecurityController
{
public function __construct(
- private readonly AuthenticationUtils $authenticationUtils,
- private readonly FormFactoryInterface $formFactory,
+ private AuthenticationUtils $authenticationUtils,
+ private FormFactoryInterface $formFactory,
+ private Environment $twig,
) {
}
@@ -46,11 +47,16 @@ class SecurityController extends AbstractController
$form = $this->formFactory->createNamed('', $formType);
- return $this->render($template, [
- 'form' => $form->createView(),
- 'last_username' => $lastUsername,
- 'error' => $error,
- ]);
+ return new Response(
+ $this->twig->render(
+ $template,
+ [
+ 'form' => $form->createView(),
+ 'last_username' => $lastUsername,
+ 'error' => $error,
+ ],
+ ),
+ );
}
/**
@@ -61,6 +67,14 @@ class SecurityController extends AbstractController
throw new \RuntimeException('You must configure the check path to be handled by the firewall.');
}
+ /**
+ * Login check action. This action should never be called.
+ */
+ public function jsonLoginCheck(): Response
+ {
+ throw new \RuntimeException('You must configure the check path to be handled by the firewall.');
+ }
+
/**
* Logout action. This action should never be called.
*/
diff --git a/src/Sylius/Bundle/UserBundle/Controller/UserController.php b/src/Sylius/Bundle/UserBundle/Controller/UserController.php
index 99442b4831..55269bdb82 100644
--- a/src/Sylius/Bundle/UserBundle/Controller/UserController.php
+++ b/src/Sylius/Bundle/UserBundle/Controller/UserController.php
@@ -13,7 +13,6 @@ declare(strict_types=1);
namespace Sylius\Bundle\UserBundle\Controller;
-use FOS\RestBundle\View\View;
use Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration;
use Sylius\Bundle\ResourceBundle\Controller\ResourceController;
use Sylius\Bundle\UserBundle\Form\Model\ChangePassword;
@@ -56,7 +55,7 @@ class UserController extends ResourceController
}
if (!$configuration->isHtmlRequest()) {
- return $this->viewHandler->handle($configuration, View::create($form, Response::HTTP_BAD_REQUEST));
+ return $this->createRestView($configuration, $form, Response::HTTP_BAD_REQUEST);
}
return new Response($this->container->get('twig')->render(
@@ -105,7 +104,7 @@ class UserController extends ResourceController
}
if (!$configuration->isHtmlRequest()) {
- return $this->viewHandler->handle($configuration, View::create($form, Response::HTTP_BAD_REQUEST));
+ return $this->createRestView($configuration, $form, Response::HTTP_BAD_REQUEST);
}
return new Response($this->container->get('twig')->render(
@@ -128,7 +127,7 @@ class UserController extends ResourceController
$user = $this->repository->findOneBy(['emailVerificationToken' => $token]);
if (null === $user) {
if (!$configuration->isHtmlRequest()) {
- return $this->viewHandler->handle($configuration, View::create($configuration, Response::HTTP_BAD_REQUEST));
+ return $this->createRestView($configuration, $configuration, Response::HTTP_BAD_REQUEST);
}
$this->addTranslatedFlash('error', 'sylius.user.verify_email_by_invalid_token');
@@ -148,7 +147,7 @@ class UserController extends ResourceController
$eventDispatcher->dispatch(new GenericEvent($user), UserEvents::POST_EMAIL_VERIFICATION);
if (!$configuration->isHtmlRequest()) {
- return $this->viewHandler->handle($configuration, View::create($user));
+ return $this->createRestView($configuration, $user);
}
$flashMessage = $this->getSyliusAttribute($request, 'flash', 'sylius.user.verify_email');
@@ -165,7 +164,7 @@ class UserController extends ResourceController
$user = $this->getUser();
if (null === $user) {
if (!$configuration->isHtmlRequest()) {
- return $this->viewHandler->handle($configuration, View::create($configuration, Response::HTTP_UNAUTHORIZED));
+ return $this->createRestView($configuration, $configuration, Response::HTTP_UNAUTHORIZED);
}
$this->addTranslatedFlash('notice', 'sylius.user.verify_no_user');
@@ -175,7 +174,7 @@ class UserController extends ResourceController
if (null !== $user->getVerifiedAt()) {
if (!$configuration->isHtmlRequest()) {
- return $this->viewHandler->handle($configuration, View::create($configuration, Response::HTTP_BAD_REQUEST));
+ return $this->createRestView($configuration, $configuration, Response::HTTP_BAD_REQUEST);
}
$this->addTranslatedFlash('notice', 'sylius.user.verify_verified_email');
@@ -193,7 +192,7 @@ class UserController extends ResourceController
$eventDispatcher->dispatch(new GenericEvent($user), UserEvents::REQUEST_VERIFICATION_TOKEN);
if (!$configuration->isHtmlRequest()) {
- return $this->viewHandler->handle($configuration, View::create(null, Response::HTTP_NO_CONTENT));
+ return $this->createRestView($configuration, null, Response::HTTP_NO_CONTENT);
}
$this->addTranslatedFlash('success', 'sylius.user.verify_email_request');
@@ -225,7 +224,7 @@ class UserController extends ResourceController
}
if (!$configuration->isHtmlRequest()) {
- return $this->viewHandler->handle($configuration, View::create(null, Response::HTTP_NO_CONTENT));
+ $this->createRestView($configuration, null, Response::HTTP_NO_CONTENT);
}
$this->addTranslatedFlash('success', 'sylius.user.reset_password_request');
@@ -244,7 +243,7 @@ class UserController extends ResourceController
}
if (!$configuration->isHtmlRequest()) {
- return $this->viewHandler->handle($configuration, View::create($form, Response::HTTP_BAD_REQUEST));
+ return $this->createRestView($configuration, $form, Response::HTTP_BAD_REQUEST);
}
return new Response($this->container->get('twig')->render(
@@ -284,7 +283,7 @@ class UserController extends ResourceController
$this->manager->flush();
if (!$configuration->isHtmlRequest()) {
- return $this->viewHandler->handle($configuration, View::create($user, Response::HTTP_BAD_REQUEST));
+ return $this->createRestView($configuration, $user, Response::HTTP_BAD_REQUEST);
}
$this->addTranslatedFlash('error', 'sylius.user.expire_password_reset_token');
@@ -331,7 +330,7 @@ class UserController extends ResourceController
$dispatcher->dispatch(new GenericEvent($user), UserEvents::POST_PASSWORD_RESET);
if (!$configuration->isHtmlRequest()) {
- return $this->viewHandler->handle($configuration, View::create(null, Response::HTTP_NO_CONTENT));
+ return $this->createRestView($configuration, null, Response::HTTP_NO_CONTENT);
}
$redirectRouteName = $this->getSyliusAttribute($request, 'redirect', null);
@@ -357,7 +356,7 @@ class UserController extends ResourceController
$dispatcher->dispatch(new GenericEvent($user), UserEvents::POST_PASSWORD_CHANGE);
if (!$configuration->isHtmlRequest()) {
- return $this->viewHandler->handle($configuration, View::create(null, Response::HTTP_NO_CONTENT));
+ return $this->createRestView($configuration, null, Response::HTTP_NO_CONTENT);
}
$redirectRouteName = $this->getSyliusAttribute($request, 'redirect', null);
@@ -381,7 +380,7 @@ class UserController extends ResourceController
return null;
}
- private function getSyliusAttribute(Request $request, string $attribute, $default = null)
+ private function getSyliusAttribute(Request $request, string $attribute, $default = null): mixed
{
$attributes = $request->attributes->get('_sylius', []);
diff --git a/src/Sylius/Bundle/UserBundle/Resources/config/services.xml b/src/Sylius/Bundle/UserBundle/Resources/config/services.xml
index 6bb325c36f..7a82443d80 100644
--- a/src/Sylius/Bundle/UserBundle/Resources/config/services.xml
+++ b/src/Sylius/Bundle/UserBundle/Resources/config/services.xml
@@ -47,9 +47,7 @@
-
-
-
+
diff --git a/src/Sylius/Bundle/UserBundle/Tests/Functional/app/AppKernel.php b/src/Sylius/Bundle/UserBundle/Tests/Functional/app/AppKernel.php
index f2de4b8e9e..fdfb8413d7 100644
--- a/src/Sylius/Bundle/UserBundle/Tests/Functional/app/AppKernel.php
+++ b/src/Sylius/Bundle/UserBundle/Tests/Functional/app/AppKernel.php
@@ -22,7 +22,6 @@ class AppKernel extends Kernel
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new Symfony\Bundle\SecurityBundle\SecurityBundle(),
new winzou\Bundle\StateMachineBundle\winzouStateMachineBundle(),
- new FOS\RestBundle\FOSRestBundle(),
new JMS\SerializerBundle\JMSSerializerBundle(),
new BabDev\PagerfantaBundle\BabDevPagerfantaBundle(),
new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
diff --git a/src/Sylius/Bundle/UserBundle/Tests/Functional/app/config/config.yml b/src/Sylius/Bundle/UserBundle/Tests/Functional/app/config/config.yml
index a39fa7b72f..e45abac210 100644
--- a/src/Sylius/Bundle/UserBundle/Tests/Functional/app/config/config.yml
+++ b/src/Sylius/Bundle/UserBundle/Tests/Functional/app/config/config.yml
@@ -34,15 +34,6 @@ doctrine:
default:
auto_mapping: true
-fos_rest:
- view:
- formats:
- json: true
- empty_content: 204
- format_listener:
- rules:
- - { path: '^/', priorities: ['json'], fallback_format: json, prefer_extension: true }
-
security:
providers:
sylius_admin_user_provider:
diff --git a/src/Sylius/Bundle/UserBundle/composer.json b/src/Sylius/Bundle/UserBundle/composer.json
index 6e60a0d097..1ce9bd43dc 100644
--- a/src/Sylius/Bundle/UserBundle/composer.json
+++ b/src/Sylius/Bundle/UserBundle/composer.json
@@ -52,7 +52,6 @@
},
"require-dev": {
"doctrine/doctrine-bundle": "^2.3.1",
- "friendsofsymfony/rest-bundle": "^3.0",
"hwi/oauth-bundle": "^1.1 || ^2.0@beta",
"jms/serializer-bundle": "^5.0",
"matthiasnoback/symfony-dependency-injection-test": "^5.1",
diff --git a/src/Sylius/Component/Addressing/composer.json b/src/Sylius/Component/Addressing/composer.json
index a5c41a310a..6f9b6e2a67 100644
--- a/src/Sylius/Component/Addressing/composer.json
+++ b/src/Sylius/Component/Addressing/composer.json
@@ -28,7 +28,7 @@
"require": {
"php": "^8.2",
"sylius/registry": "^1.6",
- "sylius/resource": "^1.11 || ^1.12@alpha",
+ "sylius/resource": "^1.12@alpha",
"symfony/intl": "^6.4.0 || ^7.1"
},
"require-dev": {
diff --git a/src/Sylius/Component/Attribute/composer.json b/src/Sylius/Component/Attribute/composer.json
index 866e29fb72..80d664e36c 100644
--- a/src/Sylius/Component/Attribute/composer.json
+++ b/src/Sylius/Component/Attribute/composer.json
@@ -28,7 +28,7 @@
"php": "^8.2",
"doctrine/collections": "^1.6",
"sylius/registry": "^1.6",
- "sylius/resource": "^1.11 || ^1.12@alpha",
+ "sylius/resource": "^1.12@alpha",
"symfony/validator": "^6.4.0 || ^7.1"
},
"require-dev": {
diff --git a/src/Sylius/Component/Channel/composer.json b/src/Sylius/Component/Channel/composer.json
index 0807e0013f..e22133fedc 100644
--- a/src/Sylius/Component/Channel/composer.json
+++ b/src/Sylius/Component/Channel/composer.json
@@ -28,7 +28,7 @@
],
"require": {
"php": "^8.2",
- "sylius/resource": "^1.11 || ^1.12@alpha",
+ "sylius/resource": "^1.12@alpha",
"symfony/form": "^6.4.1 || ^7.1",
"symfony/http-foundation": "^6.4.0 || ^7.1",
"laminas/laminas-stdlib": "^3.3.1"
diff --git a/src/Sylius/Component/Core/composer.json b/src/Sylius/Component/Core/composer.json
index 6bafcb0d28..424d2692f0 100644
--- a/src/Sylius/Component/Core/composer.json
+++ b/src/Sylius/Component/Core/composer.json
@@ -46,7 +46,7 @@
"sylius/product": "^2.0",
"sylius/promotion": "^2.0",
"sylius/registry": "^1.6",
- "sylius/resource": "^1.11 || ^1.12@alpha",
+ "sylius/resource": "^1.12@alpha",
"sylius/review": "^2.0",
"sylius/shipping": "^2.0",
"sylius/state-machine-abstraction": "^2.0",
diff --git a/src/Sylius/Component/Currency/composer.json b/src/Sylius/Component/Currency/composer.json
index 793ff7870b..24801bc891 100644
--- a/src/Sylius/Component/Currency/composer.json
+++ b/src/Sylius/Component/Currency/composer.json
@@ -26,7 +26,7 @@
],
"require": {
"php": "^8.2",
- "sylius/resource": "^1.11 || ^1.12@alpha",
+ "sylius/resource": "^1.12@alpha",
"symfony/intl": "^6.4.0 || ^7.1",
"laminas/laminas-stdlib": "^3.3.1"
},
diff --git a/src/Sylius/Component/Customer/composer.json b/src/Sylius/Component/Customer/composer.json
index 16717a8149..27efe0f9c6 100644
--- a/src/Sylius/Component/Customer/composer.json
+++ b/src/Sylius/Component/Customer/composer.json
@@ -33,7 +33,7 @@
"require": {
"php": "^8.2",
"doctrine/collections": "^1.6",
- "sylius/resource": "^1.11 || ^1.12@alpha"
+ "sylius/resource": "^1.12@alpha"
},
"require-dev": {
"phpspec/phpspec": "^7.2"
diff --git a/src/Sylius/Component/Inventory/composer.json b/src/Sylius/Component/Inventory/composer.json
index 129fe0d52a..a6790ebb2a 100644
--- a/src/Sylius/Component/Inventory/composer.json
+++ b/src/Sylius/Component/Inventory/composer.json
@@ -27,7 +27,7 @@
],
"require": {
"php": "^8.2",
- "sylius/resource": "^1.11 || ^1.12@alpha",
+ "sylius/resource": "^1.12@alpha",
"webmozart/assert": "^1.9"
},
"require-dev": {
diff --git a/src/Sylius/Component/Locale/composer.json b/src/Sylius/Component/Locale/composer.json
index fa5f533c56..e34a2fd7e3 100644
--- a/src/Sylius/Component/Locale/composer.json
+++ b/src/Sylius/Component/Locale/composer.json
@@ -27,7 +27,7 @@
],
"require": {
"php": "^8.2",
- "sylius/resource": "^1.11 || ^1.12@alpha",
+ "sylius/resource": "^1.12@alpha",
"symfony/intl": "^6.4.0 || ^7.1",
"laminas/laminas-stdlib": "^3.3.1"
},
diff --git a/src/Sylius/Component/Order/composer.json b/src/Sylius/Component/Order/composer.json
index 29c11a7dd0..ab6351c39e 100644
--- a/src/Sylius/Component/Order/composer.json
+++ b/src/Sylius/Component/Order/composer.json
@@ -27,7 +27,7 @@
],
"require": {
"php": "^8.2",
- "sylius/resource": "^1.11 || ^1.12@alpha",
+ "sylius/resource": "^1.12@alpha",
"webmozart/assert": "^1.9",
"laminas/laminas-stdlib": "^3.3.1"
},
diff --git a/src/Sylius/Component/Payment/composer.json b/src/Sylius/Component/Payment/composer.json
index b65cd5b482..877600569b 100644
--- a/src/Sylius/Component/Payment/composer.json
+++ b/src/Sylius/Component/Payment/composer.json
@@ -28,7 +28,7 @@
"require": {
"php": "^8.2",
"sylius/registry": "^1.6",
- "sylius/resource": "^1.11 || ^1.12@alpha"
+ "sylius/resource": "^1.12@alpha"
},
"require-dev": {
"phpspec/phpspec": "^7.2"
diff --git a/src/Sylius/Component/Product/composer.json b/src/Sylius/Component/Product/composer.json
index 2020241293..771787d1d9 100644
--- a/src/Sylius/Component/Product/composer.json
+++ b/src/Sylius/Component/Product/composer.json
@@ -31,7 +31,7 @@
"php": "^8.2",
"behat/transliterator": "^1.3",
"sylius/attribute": "^2.0",
- "sylius/resource": "^1.11 || ^1.12@alpha",
+ "sylius/resource": "^1.12@alpha",
"symfony/polyfill-iconv": "^1.28",
"webmozart/assert": "^1.9"
},
diff --git a/src/Sylius/Component/Promotion/composer.json b/src/Sylius/Component/Promotion/composer.json
index 87bcbdff6b..2e12157c34 100644
--- a/src/Sylius/Component/Promotion/composer.json
+++ b/src/Sylius/Component/Promotion/composer.json
@@ -28,7 +28,7 @@
"php": "^8.2",
"doctrine/orm": "^2.13",
"sylius/registry": "^1.6",
- "sylius/resource": "^1.11 || ^1.12@alpha"
+ "sylius/resource": "^1.12@alpha"
},
"require-dev": {
"phpspec/phpspec": "^7.2"
diff --git a/src/Sylius/Component/Review/composer.json b/src/Sylius/Component/Review/composer.json
index 6bc1ebfe26..4e9db2398e 100644
--- a/src/Sylius/Component/Review/composer.json
+++ b/src/Sylius/Component/Review/composer.json
@@ -39,7 +39,7 @@
"require": {
"php": "^8.2",
"doctrine/collections": "^1.6",
- "sylius/resource": "^1.11 || ^1.12@alpha"
+ "sylius/resource": "^1.12@alpha"
},
"require-dev": {
"phpspec/phpspec": "^7.2"
diff --git a/src/Sylius/Component/Shipping/composer.json b/src/Sylius/Component/Shipping/composer.json
index 16b2b0713b..5c2cf4d9c5 100644
--- a/src/Sylius/Component/Shipping/composer.json
+++ b/src/Sylius/Component/Shipping/composer.json
@@ -30,7 +30,7 @@
"require": {
"php": "^8.2",
"sylius/registry": "^1.6",
- "sylius/resource": "^1.11 || ^1.12@alpha",
+ "sylius/resource": "^1.12@alpha",
"symfony/options-resolver": "^6.4.0 || ^7.1"
},
"require-dev": {
diff --git a/src/Sylius/Component/Taxation/composer.json b/src/Sylius/Component/Taxation/composer.json
index 504f5bc740..2de234403f 100644
--- a/src/Sylius/Component/Taxation/composer.json
+++ b/src/Sylius/Component/Taxation/composer.json
@@ -30,7 +30,7 @@
"require": {
"php": "^8.2",
"sylius/registry": "^1.6",
- "sylius/resource": "^1.11 || ^1.12@alpha",
+ "sylius/resource": "^1.12@alpha",
"symfony/clock": "^6.4.0 || ^7.1"
},
"require-dev": {
diff --git a/src/Sylius/Component/Taxonomy/composer.json b/src/Sylius/Component/Taxonomy/composer.json
index 65a0d07bb2..c0625ff876 100644
--- a/src/Sylius/Component/Taxonomy/composer.json
+++ b/src/Sylius/Component/Taxonomy/composer.json
@@ -28,7 +28,7 @@
"require": {
"php": "^8.2",
"behat/transliterator": "^1.3",
- "sylius/resource": "^1.11 || ^1.12@alpha",
+ "sylius/resource": "^1.12@alpha",
"webmozart/assert": "^1.9"
},
"require-dev": {
diff --git a/src/Sylius/Component/User/composer.json b/src/Sylius/Component/User/composer.json
index 440d437445..0420879511 100644
--- a/src/Sylius/Component/User/composer.json
+++ b/src/Sylius/Component/User/composer.json
@@ -36,7 +36,7 @@
"php": "^8.2",
"doctrine/collections": "^1.6",
"phpunit/phpunit": "^9.5",
- "sylius/resource": "^1.11 || ^1.12@alpha",
+ "sylius/resource": "^1.12@alpha",
"symfony/polyfill-mbstring": "^1.28",
"symfony/security-core": "^6.4.0 || ^7.1"
},
diff --git a/symfony.lock b/symfony.lock
index 0e292864e5..eded6a8372 100644
--- a/symfony.lock
+++ b/symfony.lock
@@ -173,15 +173,6 @@
"friendsofphp/proxy-manager-lts": {
"version": "v1.0.2"
},
- "friendsofsymfony/rest-bundle": {
- "version": "2.2",
- "recipe": {
- "repo": "github.com/symfony/recipes-contrib",
- "branch": "master",
- "version": "2.2",
- "ref": "cad41ef93d6150067ae2bb3c7fd729492dff6f0a"
- }
- },
"gedmo/doctrine-extensions": {
"version": "v2.4.42"
},
@@ -985,9 +976,6 @@
"webmozart/assert": {
"version": "1.9.1"
},
- "willdurand/jsonp-callback-validator": {
- "version": "v1.1.0"
- },
"willdurand/negotiation": {
"version": "v2.3.1"
},