gothinkster / slim-php-realworld-example-app

Exemplary real world application built with Slim
https://realworld.io
427 stars 96 forks source link

Argument 1 passed to Conduit\Controllers\Auth\RegisterController::__construct() must be an instance of Interop\Container\ContainerInterface, instance of Slim\Container given. #23

Closed imduriprakash closed 4 years ago

imduriprakash commented 4 years ago

Hi,

I've downloaded latest repository and trying to run from localhost by following readme file. I'm getting the following error when application started: Argument 1 passed to Conduit\Controllers\Auth\RegisterController::__construct() must be an instance of Interop\Container\ContainerInterface, instance of Slim\Container given, called in \vendor\slim\slim\Slim\CallableResolver.php on line 102 File: \src\Conduit\Controllers\Auth\RegisterController.php Line: 30

Basically this error is existing throughout the application, while referring OptionalAuth also. I've PHP 7.1.3 in my local.

imduriprakash commented 4 years ago

22 will fix the issue, please merge #22 .