php cs fixer

This commit is contained in:
Julie Lenaerts 2023-12-04 16:24:05 +01:00
parent de9251942c
commit a97a22d464
3 changed files with 2 additions and 7 deletions

View File

@ -16,7 +16,6 @@ use Chill\MainBundle\Pagination\PaginatorFactory;
use Chill\MainBundle\Repository\NewsItemRepository;
use Chill\MainBundle\Templating\Listing\FilterOrderHelper;
use Chill\MainBundle\Templating\Listing\FilterOrderHelperFactoryInterface;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;

View File

@ -564,7 +564,7 @@ class ChillMainExtension extends Extension implements
],
'view' => [
'role' => 'ROLE_ADMIN',
'template' => '@ChillMain/NewsItem/view_admin.html.twig'
'template' => '@ChillMain/NewsItem/view_admin.html.twig',
],
'edit' => [
'role' => 'ROLE_ADMIN',
@ -573,7 +573,7 @@ class ChillMainExtension extends Extension implements
'delete' => [
'role' => 'ROLE_ADMIN',
'template' => '@ChillMain/NewsItem/delete.html.twig',
]
],
],
],
],

View File

@ -12,16 +12,12 @@ declare(strict_types=1);
namespace Chill\MainBundle\Templating\Entity;
use Chill\MainBundle\Entity\NewsItem;
use Chill\MainBundle\Templating\Entity\ChillEntityRenderInterface;
use Chill\MainBundle\Templating\TranslatableStringHelper;
/**
* @implements ChillEntityRenderInterface<NewsItem>
*/
final readonly class NewsItemRender implements ChillEntityRenderInterface
{
public function __construct(private TranslatableStringHelper $translatableStringHelper, private \Twig\Environment $engine) {}
public function renderBox($entity, array $options): string
{
return '';