title: replace symfony2 access denied template
body: <p>Using Symfony2.3.4, PHP5.6.3 and Twig.</p>
  
  <p>See, this is the template used by symfony everytime a user tries to access a <code>url</code> and it does not pass the access control set in the <code>security.yml</code> file.
  All I want is to redirect the user to a template of my creation/choosing.</p>
  
  <p>If I were restricting the user's access in a <code>PHP</code> class, sure, I could ask for its role/permissions and decide from there but I want to use the access control I have already set in my <code>security.yml</code> file, say like a global <code>.html.twig</code> file to replace the one below.</p>
  
  <p><a href="https://i.stack.imgur.com/0WX4U.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0WX4U.png" alt="Symfony template"></a></p>