If Symfony Cache is not installed and the Doctrine Cache package is installed in version 2, we effectively cannot produce a cached annotation reader. Right now, we would run into an error because SerializerBuilder would attempt to create an instance of FilesystemCache which doesn't exist anymore.
With the proposed change, we would silently fall back to an uncached reader which might just be good enough. The alternative would be to throw an exception, telling the caller to either install Symfony Cache or turn off caching.
If Symfony Cache is not installed and the Doctrine Cache package is installed in version 2, we effectively cannot produce a cached annotation reader. Right now, we would run into an error because
SerializerBuilder
would attempt to create an instance ofFilesystemCache
which doesn't exist anymore.With the proposed change, we would silently fall back to an uncached reader which might just be good enough. The alternative would be to throw an exception, telling the caller to either install Symfony Cache or turn off caching.