WIP: Symfony 6 project remake #2

Draft
skobkin wants to merge 103 commits from symfony6_remake into master
Showing only changes of commit 392ead9b3e - Show all commits

View file

@ -5,8 +5,7 @@ namespace App\Twig;
use App\Entity\User;
use Twig\Extension\AbstractExtension;
use Twig\TwigFilter;
use Twig\TwigFunction;
use Twig\{TwigFilter, TwigFunction};
class PointUrlExtension extends AbstractExtension
{
@ -16,7 +15,7 @@ class PointUrlExtension extends AbstractExtension
) {
}
public function getFunctions()
public function getFunctions(): array
{
return [
new TwigFunction('point_avatar', [$this, 'avatarFunction']),
@ -29,7 +28,7 @@ class PointUrlExtension extends AbstractExtension
];
}
public function getFilters()
public function getFilters(): array
{
return [
new TwigFilter('point_avatar', [$this, 'avatarFunction']),