$this->accessDecisionManager->decide( $token, [AccompanyingPeriodVoter::EDIT], $subject->getAccompanyingPeriod() ), default => throw new UnexpectedValueException("attribute not supported: {$attribute}"), }; } }