private function getVoter($providerCollection, $sessionFlagManager) { $voter = new Voter($sessionFlagManager, $providerCollection); return $voter; }