public function _getCookieDomain(Request $request = null) { if ($request === null) { return $this->getCubex()->getConfiguration()->getItem('auth', 'cookie_domain'); } return $request->urlSprintf($this->getCubex()->getConfiguration()->getItem('auth', 'cookie_domain_format', "%d.%t")); }