mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-02 04:53:49 +00:00
DX: apply rector rules up to php8.0
This commit is contained in:
@@ -27,21 +27,16 @@ class ACLFlagsCompilerPass implements CompilerPassInterface
|
||||
$reference = new Reference($id);
|
||||
|
||||
foreach ($tags as $tag) {
|
||||
switch ($tag['scope']) {
|
||||
case PermissionsGroupType::FLAG_SCOPE:
|
||||
$permissionGroupType->addMethodCall('addFlagProvider', [$reference]);
|
||||
|
||||
break;
|
||||
|
||||
default:
|
||||
throw new LogicException(
|
||||
sprintf(
|
||||
"This tag 'scope' is not implemented: %s, on service with id %s",
|
||||
$tag['scope'],
|
||||
$id
|
||||
)
|
||||
);
|
||||
}
|
||||
match ($tag['scope']) {
|
||||
PermissionsGroupType::FLAG_SCOPE => $permissionGroupType->addMethodCall('addFlagProvider', [$reference]),
|
||||
default => throw new LogicException(
|
||||
sprintf(
|
||||
"This tag 'scope' is not implemented: %s, on service with id %s",
|
||||
$tag['scope'],
|
||||
$id
|
||||
)
|
||||
),
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user