PSR 2 compliance
This commit is contained in:
parent
3bf4a1460e
commit
9032faa4e8
|
@ -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,
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue