title: PHP Fatal error: Class 'X' not found
body: <p>I am facing a very strange error although it seems that i have done all the requires</p>
  
  <p>Error: <code>PHP Fatal error:  Class 'Login' not found</code></p>
  
  <p>Code:</p>
  
  <pre><code>&lt;?php
  
  //Includes...
  require_once(__DIR__ . "/base/request.abstract.php");
  
  //Entry point...
  try {
      //What should i do ? the class is in the same file so what to do so php recognize it ?
      echo (new Login($_REQUEST['request']))-&gt;processRequest();
  } catch (Exception $e) {
      echo json_encode(array('error' =&gt; $e-&gt;getMessage()));
  }
  
  //Implementation...
  class Login extends RequestAbstract
  {
      public function processRequest()
      {
  
      }
  }
  </code></pre>