mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-30 18:39:43 +00:00
apply rules rector up to php82
This commit is contained in:
@@ -11,7 +11,7 @@ declare(strict_types=1);
|
||||
|
||||
namespace Chill\MainBundle\Security\Resolver;
|
||||
|
||||
final class CenterResolverDispatcher implements CenterResolverDispatcherInterface
|
||||
final readonly class CenterResolverDispatcher implements CenterResolverDispatcherInterface
|
||||
{
|
||||
/**
|
||||
* @param \Chill\MainBundle\Security\Resolver\CenterResolverInterface[] $resolvers
|
||||
|
@@ -17,7 +17,7 @@ use UnexpectedValueException;
|
||||
use function get_class;
|
||||
use function is_array;
|
||||
|
||||
final class CenterResolverManager implements CenterResolverManagerInterface
|
||||
final readonly class CenterResolverManager implements CenterResolverManagerInterface
|
||||
{
|
||||
/**
|
||||
* @param \Chill\MainBundle\Security\Resolver\CenterResolverInterface[] $resolvers
|
||||
|
@@ -15,16 +15,16 @@ use Twig\TwigFilter;
|
||||
|
||||
final class ResolverTwigExtension extends \Twig\Extension\AbstractExtension
|
||||
{
|
||||
public function __construct(private CenterResolverManagerInterface $centerResolverDispatcher, private ScopeResolverDispatcher $scopeResolverDispatcher)
|
||||
public function __construct(private readonly CenterResolverManagerInterface $centerResolverDispatcher, private readonly ScopeResolverDispatcher $scopeResolverDispatcher)
|
||||
{
|
||||
}
|
||||
|
||||
public function getFilters()
|
||||
{
|
||||
return [
|
||||
new TwigFilter('chill_resolve_center', [$this, 'resolveCenter']),
|
||||
new TwigFilter('chill_resolve_scope', [$this, 'resolveScope']),
|
||||
new TwigFilter('chill_is_scope_concerned', [$this, 'isScopeConcerned']),
|
||||
new TwigFilter('chill_resolve_center', $this->resolveCenter(...)),
|
||||
new TwigFilter('chill_resolve_scope', $this->resolveScope(...)),
|
||||
new TwigFilter('chill_is_scope_concerned', $this->isScopeConcerned(...)),
|
||||
];
|
||||
}
|
||||
|
||||
|
@@ -14,7 +14,7 @@ namespace Chill\MainBundle\Security\Resolver;
|
||||
use Chill\MainBundle\Entity\Scope;
|
||||
use Doctrine\Common\Collections\Collection;
|
||||
|
||||
final class ScopeResolverDispatcher
|
||||
final readonly class ScopeResolverDispatcher
|
||||
{
|
||||
/**
|
||||
* @param \Chill\MainBundle\Security\Resolver\ScopeResolverInterface[] $resolvers
|
||||
|
Reference in New Issue
Block a user