Symfony Guard Example Choose your version: Symfony 2.8 Symfony 3.4 Symfony 4.1 This is example code for implementing Symfony Guard with SonataAdminBundle instead of SonataUserBundle. This code from branch 2.8 was used in a talk that you can find here.