Ported PostController.

This commit is contained in:
Alexey Skobkin 2023-04-01 20:30:04 +03:00
parent e56cae9568
commit 40db2edc38
No known key found for this signature in database
GPG Key ID: 5D5CEF6F221278E7
1 changed files with 5 additions and 5 deletions

View File

@ -1,11 +1,12 @@
<?php
declare(strict_types=1);
namespace src\PointToolsBundle\Controller;
namespace App\Controller;
use src\PointToolsBundle\Entity\Blogs\Post;
use src\PointToolsBundle\Repository\Blogs\PostRepository;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter;
use App\Entity\Blog\Post;
use App\Repository\Blog\PostRepository;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
class PostController extends AbstractController
@ -29,5 +30,4 @@ class PostController extends AbstractController
'post' => $postRepository->getPostWithComments($post->getId()),
]);
}
}