如何注销会话Symfony Fos:Userbundle

I am new to Symfony2, i am using FOSUserBundle. I overwrote the default template for the FOSUserBundle, and doing so i have lost the 'loggout' link on the profile page at

             resource: "@FOSUserBundle/Resources/config/routing/profile.xml" 

Is there a way to loggout from the symfony tool bar at the bottom?

and what is the resource link to loggout a user in fosUserBundle

I think, that the default route for logout in FOSUerBundle is "fos_user_security_logout", so you can generate a logout link anywhere in your site with this route:

<a href="{{ path('fos_user_security_logout') }}">

It is also possible to add a new block to the Symfony2 debug toolbar with the logout link. You should have a look here: Adding Web Profiler Templates

You can extend the 'WebProfilerBundle:Profiler:layout.html.twig' layout and add the custom content to the toolbar block.

{% block toolbar %}
    {# the web debug toolbar content #}
{% endblock %}