title: Use of an overloaded global class in a Symfony controller
body: <p>I try to include the following code in a Symfony controller file:</p>
  
  <pre><code>namespace {
      class LocalSoapClient extends \SoapClient {
          function __doRequest($request, $location, $action, $version) {
              //...............
          }
      }
  }
  namespace .....\Controller {
      //.......
  }
  </code></pre>
  
  <p>In the controller class, I try to use the overloaded class:</p>
  
  <pre><code>$service = new \LocalSoapClient($wsdl);
  </code></pre>
  
  <p>With the \, the class is supposed to be in the global namespace. But I get the error:</p>
  
  <pre><code>Class 1\LocalSoapClient does not exist in .......\FrontBundle/Controller/
  </code></pre>
  
  <p>Why?</p>
  
  <p>If I use a single namespace instruction, and I overload the class before the Controller class, I get the same kind of error.</p>
  
  <p>What can I do to be able to use my overloaded class?</p>
  
  <p>Thanks in advance</p>