generator = $generator; return $this; } /** * @return UrlGenerator */ public function getUrlGenerator() { return $this->generator; } /** * @param SessionInterface $session * * @return ProviderInterface */ public function setSession(SessionInterface $session) { $this->session = $session; return $this; } /** * {@inheritdoc} */ public function getTemplates(Identity $identity) { return []; } /** * @return SessionInterface */ public function getSession() { return $this->session; } protected function createState() { return md5(uniqid(microtime(true), true)); } }