public function addAuthenticator(AuthenticatorInterface $authenticator) { $this->authenticators->set($authenticator->getSerial(), $authenticator); }