title: psr4 autoload class not found
body: <p>I am making my own framework but I have a problem with psr4 autoload and composer.
  I can not make classes available and apparently everything is fine
  This is the error, I don't want to use include for class files:</p>
  
  <pre><code>Fatal error: Uncaught Error: Class 'System\Template\get_template_files_class' not found in /var/www/html/fsib/system/layout-compiler.php:7 Stack trace: #0 {main} thrown in /var/www/html/fsib/system/layout-compiler.php on line 7
  </code></pre>
  
  <blockquote>
    <p>composer.json</p>
  </blockquote>
  
  <pre><code>{
  "require": {
      "illuminate/database": "*",
      "illuminate/routing": "~5.1.16",
      "illuminate/events": "~5.1.16"
  },
  "autoload": {
      "psr-4": {
         "System\\" : "system/libs/"
       }
  }}
  </code></pre>
  
  <blockquote>
    <p>layout-compiler.php</p>
  </blockquote>
  
  <pre><code>&lt;?php
  
   require_once '../vendor/autoload.php';
  
   use System\Template\get_template_files_class;
  
   $templates = new get_template_files_class;
  
   ?&gt;
  </code></pre>
  
  <blockquote>
    <p>get_templates_files_class.php</p>
  </blockquote>
  
  <pre><code>&lt;?php 
  
  namespace System\Template
  
    class get_template_files_class {
  
    }
  
  ?&gt;
  </code></pre>