diff --git a/composer.json b/composer.json index 6116271a8..ec27b6f5c 100644 --- a/composer.json +++ b/composer.json @@ -23,16 +23,16 @@ "php": "^8.1", "friendsofsymfony/rest-bundle": "^3.0", "jms/serializer-bundle": "^4.0|^5.0", - "symfony/framework-bundle": "^5.4|^6.4", - "symfony/asset": "^5.4|^6.4", - "symfony/dependency-injection": "^5.4|^6.4", - "symfony/routing": "^5.4|^6.4", - "symfony/security-bundle": "^5.4|^6.4", - "symfony/yaml": "^5.4|^6.4", - "symfony/form": "^5.4|^6.4", - "symfony/validator": "^5.4|^6.4", - "symfony/twig-bundle": "^5.4|^6.4", - "symfony/twig-bridge": "^5.4|^6.4", + "symfony/framework-bundle": "^6.4", + "symfony/asset": "^6.4", + "symfony/dependency-injection": "^6.4", + "symfony/routing": "^6.4", + "symfony/security-bundle": "^6.4", + "symfony/yaml": "^6.4", + "symfony/form": "^6.4", + "symfony/validator": "^6.4", + "symfony/twig-bundle": "^6.4", + "symfony/twig-bridge": "^6.4", "twig/twig": "^3.0", "phpoption/phpoption": "^1.1", "doctrine/annotations": "^1.0", diff --git a/src/Controller/ThreadController.php b/src/Controller/ThreadController.php index 45bc82fbf..d8c5f6242 100644 --- a/src/Controller/ThreadController.php +++ b/src/Controller/ThreadController.php @@ -346,7 +346,7 @@ public function getThreadCommentsAction(Request $request, string $id): Response $thread->setPermalink($permalink); // Validate the entity - $errors = $this->get('validator')->validate($thread, null, ['NewThread']); + $errors = $this->container->get('core.validator')->validate($thread, null, ['NewThread']); if (count($errors) > 0) { $view = View::create() ->setStatusCode(Response::HTTP_BAD_REQUEST) @@ -410,7 +410,7 @@ public function getThreadCommentsAction(Request $request, string $id): Response return new Response($handler->renderTemplate($view, 'rss'), Response::HTTP_OK, $view->getHeaders()); }; - $this->get('fos_rest.view_handler')->registerHandler('rss', $templatingHandler); + $this->container->get('fos_rest.view_handler')->registerHandler('rss', $templatingHandler); } return $this->handleView($view); diff --git a/src/DependencyInjection/Configuration.php b/src/DependencyInjection/Configuration.php index ce7a7cc2a..d0fc0f462 100644 --- a/src/DependencyInjection/Configuration.php +++ b/src/DependencyInjection/Configuration.php @@ -28,7 +28,7 @@ class Configuration implements ConfigurationInterface * * @return NodeInterface */ - public function getConfigTreeBuilder() + public function getConfigTreeBuilder(): TreeBuilder { $treeBuilder = new TreeBuilder('fos_comment');