title: Securing a whole Controller in Symfony with sfGuard?
body: <p>I was looking at the Documents for sfGuard and Symfony about the security. But I cannot find anywhere about secure a whole Controller. There is only called action Secure. </p>
  
  <p>I tried to use the <code>preExecute</code> method to make a call to <code>forward404Unless($this-&gt;getUser()-&gt;hasGroup('admin'))</code> but it doesn't work.</p>
  
  <p>Is it possible to use the security.yml and sfGuard to secure my actions in a controller? Or is there practice of doing this in symfony? It will be a hassle to edit every single controller I have had to create custom security that might change in the future.</p>
  
  <p>Thank you.</p>