public function getLogoutPath()
    {
        $logout = $this->app['request']->getBasePath();

        if (($firewall = $this->getFirewall($this->getCurrentPathRelativeToBase()))) {
            $logout .= $firewall->getLogoutPath();
        }

        return $logout;
    }