title: Slim application Autoloading
body: <p>I am newbie on REST and Slim applications.</p>
  
  <p>I was not able to autoload some classes:</p>
  
  <blockquote>
    <p>Type: RuntimeException Message: Callable UserController does not exist
    File: /var/www/fdes/vendor/slim/slim/Slim/CallableResolver.php Line:
    90</p>
    
    <p>#0 /var/www/fdes/vendor/slim/slim/Slim/CallableResolver.php(61): Slim\CallableResolver->resolveCallable('UserController', 'login')<br>
    #1 /var/www/fdes/vendor/slim/slim/Slim/CallableResolverAwareTrait.php(45):
    Slim\CallableResolver->resolve('UserController:...')<br>
    #2 /var/www/fdes/vendor/slim/slim/Slim/Route.php(351): Slim\Routable->resolveCallable('UserController:...')</p>
  </blockquote>
  
  <p>composer.json:</p>
  
  <pre><code>"autoload": {
          "psr-4": {
              "App\\": "app/"
          }
      }
  </code></pre>
  
  <p>Directory Structure:</p>
  
  <pre><code>fdes\app\api\Controllers\User\UserController.php
  </code></pre>
  
  <p>UserController.php:</p>
  
  <pre><code>namespace Api\Controllers\User;
  
  use Slim\Http\Request;
  use Slim\Http\Response;
  use Respect\Validation\Validator as v;
  
  class UserController extends BaseController {
  
      protected $db;
  </code></pre>
  
  <p>Can u guys let me  know what i am missing here?</p>
  
  <p>Thanks Folks!</p>