diff --git a/application/symfony/src/Domain/Right/RightLayerCombinationService.php b/application/symfony/src/Domain/Right/RightLayerCombinationService.php index eb1745d..ab248a1 100644 --- a/application/symfony/src/Domain/Right/RightLayerCombinationService.php +++ b/application/symfony/src/Domain/Right/RightLayerCombinationService.php @@ -68,11 +68,11 @@ final class RightLayerCombinationService implements RightLayerCombinationService * * @see \Infinito\Domain\Right\RightLayerCombinationServiceInterface::getPossibleLayers() */ - public function getPossibleLayers(string $crudType): array + public function getPossibleLayers(string $crud): array { $possibleLayers = []; foreach ($this->possibleCombinations as $layer => $possibleCombination) { - if (in_array($crudType, $possibleCombination)) { + if (in_array($crud, $possibleCombination)) { $possibleLayers[] = $layer; } } diff --git a/application/symfony/src/Domain/Right/RightLayerCombinationServiceInterface.php b/application/symfony/src/Domain/Right/RightLayerCombinationServiceInterface.php index 2331d44..bd52fb5 100644 --- a/application/symfony/src/Domain/Right/RightLayerCombinationServiceInterface.php +++ b/application/symfony/src/Domain/Right/RightLayerCombinationServiceInterface.php @@ -26,9 +26,7 @@ interface RightLayerCombinationServiceInterface * * @see CRUDType::getValues() * - * @param string $crud - * * @return array The layers which exist for a right */ - public function getPossibleLayers(string $crudType): array; + public function getPossibleLayers(string $crud): array; }