fabriceyopa / slim-laravel

A Laravel like base on Slim Framework 3. This is a skeleton app to start faster
30 stars 10 forks source link

Can you please update,,, Error : Circular dependency detected while trying to resolve entry 'router'" #1

Closed sarelvdm closed 7 years ago

sarelvdm commented 7 years ago

Fix for the version php-di/slim-bridge v1.0.3. in Container.php

add... use Slim\Interfaces\RouterInterface;

change 'router' => get(Slim\Router::class), to

RouterInterface::class => function (ContainerInterface $container) { return $container->get('router'); },

fabriceyopa commented 7 years ago

Okay guy, I take some time to fixed it