mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2026-03-04 13:09:42 +00:00
apply rules rector up to php82
This commit is contained in:
@@ -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(...)),
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user