Description
Version 1.7.2
It seems #154 broke something, because I now got the following error:
No PSR-17 response factory found. Install a package from this list: https://packagist.org/providers/psr/http-factory-implementation
Could not find resource using any discovery strategy. Find more information at http://docs.php-http.org/en/latest/discovery.html#common-errors - Puli Factory is not available - No valid candidate found using strategy "Http\Discovery\Strategy\CommonClassesStrategy". We tested the following candidates: . - No valid candidate found using strategy "Http\Discovery\Strategy\CommonPsr17ClassesStrategy". We tested the following candidates: Nyholm\Psr7\Factory\Psr17Factory, Zend\Diactoros\ResponseFactory, Http\Factory\Diactoros\ResponseFactory, Http\Factory\Guzzle\ResponseFactory, Http\Factory\Slim\ResponseFactory.
So when I revert this:
public static function safeClassExists($class)
{
try {
return class_exists($class) || interface_exists($class);
} catch (\Exception $e) {
return false;
}
Back to the old behavior:
public static function safeClassExists($class)
{
try {
return class_exists($class);
} catch (\Exception $e) {
return false;
}
Now the error is gone.
The debug trace points to https://github.com/FriendsOfSymfony/FOSHttpCache/blob/master/src/ProxyClient/HttpDispatcher.php#L99
Any idea what this could be?