Using @marcghorayeb's library as a starting point and converting to Symfony2 toolbar