php - problems with slim loading class
one text
Solution:
There's no error here about class loading issues. You've defined a route with a callable that isn't valid:
/**
* @param mixed $resolved
* @param mixed $toResolve
*
* @throws RuntimeException
*
* @return callable
*/
private function assertCallable($resolved, $toResolve): callable
{
if (!is_callable($resolved)) {
throw new RuntimeException(sprintf(
'%s is not resolvable',
is_callable($toResolve) || is_object($toResolve) || is_array($toResolve) ?
json_encode($toResolve) : $toResolve
));
}
return $resolved;
}
The error complaints about CitasController:getAll()
but you have public function getAall($request, $response, $arg)
.