title: Argument 1 passed to app\Controllers\Controller::__construct() must be an instance of Interop\Container\ContainerInterface
body: <p>Slim Application Error</p>
  
  <pre><code>    The application could not run because of the following error:
      Details
      Type:TypeError
      Message:Argument 1 passed to app\Controllers\Controller::__construct() must be an instance of Interop\Container\ContainerInterface, instance of Slim\Container given, called in
          /opt/lampp/htdocs/project/vendor/slim/slim/Slim/CallableResolver.php on line 102
  </code></pre>
  
  <p>I am getting this error when call any method.Other controllers extend  this controller 
  Controller.php file looks like this-</p>
  
  <pre><code>&lt;?php
  
  namespace app\Controllers;
  
  use Interop\Container\ContainerInterface as ContainerInterface;
  
  abstract class Controller
  {
      protected $container;
  
      public function __construct(ContainerInterface $container)
      {
          $this-&gt;container = $container;
      }
  
      public function __get($property)
      {
          if($this-&gt;container-&gt;{$property})
          {
              return $this-&gt;container-&gt;{$property};
          }
      }
  }
  </code></pre>