title: How to verify (google) domain ownership with html file method in Symfony?
body: <p>How to add an html file to prouve ownership of a domaine in a Symfony application ? </p>
  
  <p>Here is my working solution but I think it's pretty ugly because :</p>
  
  <ol>
  <li>I have to create a special route</li>
  <li>I have to store the file outside of /web directory where I think it is supposed to live.</li>
  </ol>
  
  <p>Step 1 - Create a route (src/mybundle/Ressources/config/routing.xml</p>
  
  <pre><code>my_route_name:
       path:      /google43d423494a0981c2.html
       defaults: { _controller: MyBundle:Main:googleCheck}
  </code></pre>
  
  <p>Step 2 - Create a controler action</p>
  
  <pre><code>public function googleCheckAction(){
      return $this-&gt;render('google43d423494a0981c2.html.twig');
  }
  </code></pre>
  
  <p>/!\ Carreful - trick 1 you need to rename the file with the .twig extention otherwise this won't work.</p>
  
  <p>Now put the file under app/Resources/views/
  You can also put the file in any of your bundle views, just change the path in the controler action.</p>
  
  <p>What would be the best way to handle this case ?</p>