PSR 2 compliance

This commit is contained in:
Simon Vieille 2021-03-17 20:42:36 +01:00
parent 3bf4a1460e
commit 9032faa4e8
2 changed files with 4 additions and 1 deletions

View file

@ -97,7 +97,7 @@ class PostAdminController extends AdminController
/** /**
* @Route("/show/{entity}", name="admin_blog_post_show") * @Route("/show/{entity}", name="admin_blog_post_show")
*/ */
public function show(Entity $entity, PostRepositoryQuery $postQuery): Response public function show(Entity $entity): Response
{ {
return $this->render('blog/post_admin/show.html.twig', [ return $this->render('blog/post_admin/show.html.twig', [
'entity' => $entity, 'entity' => $entity,

View file

@ -2,6 +2,7 @@
namespace App\Entity\Blog; namespace App\Entity\Blog;
use App\Doctrine\Timestampable;
use App\Entity\EntityInterface; use App\Entity\EntityInterface;
use App\Repository\Blog\CategoryRepository; use App\Repository\Blog\CategoryRepository;
use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\ArrayCollection;
@ -14,6 +15,8 @@ use Doctrine\ORM\Mapping as ORM;
*/ */
class Category implements EntityInterface class Category implements EntityInterface
{ {
use Timestampable;
/** /**
* @ORM\Id * @ORM\Id
* @ORM\GeneratedValue * @ORM\GeneratedValue