authenticator = $authenticator; $this->providers = $providers; } /** * * @param User $user * * @return Session */ public function openAccount(User $user) { return $this->authenticator->openAccount($user); } /** * Return a RedirectResponse */ public function authenticate(array $parameters, $provider) { return $this->providers ->get($provider) ->authenticate($parameters); } public function getProviders() { return $this->providers; } }