In the spirit of 882a8e3f09 allow for localized logout target url

This commit is contained in:
Ned Schwartz 2011-06-10 12:24:27 -07:00
parent 2e5ed78095
commit 17b7b558ce

View File

@ -69,6 +69,8 @@ class LogoutListener implements ListenerInterface
{ {
$request = $event->getRequest(); $request = $event->getRequest();
$this->targetUrl = str_replace('{_locale}', $request->getSession()->getLocale(), $this->targetUrl);
if ($this->logoutPath !== $request->getPathInfo()) { if ($this->logoutPath !== $request->getPathInfo()) {
return; return;
} }