When I define a controller action on a route using the class:method syntax in an application using Slim-Bridge, I get this error:
Slim Application Error
The application could not run because of the following error:
Details
Type: Invoker\Exception\NotCallableException
Code: 0
Message: 'App\\Controllers\\HomeController:index' is neither a callable nor a valid container entry
File: C:\Users\Ashura\Desktop\Projetos\spark\vendor\php-di\invoker\src\Exception\NotCallableException.php
Line: 33
When I define a controller action on a route using the
class:method
syntax in an application using Slim-Bridge, I get this error:I am using the following code:
When I remove Slim-Bridge and add App Factory everything works: