Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use PsrCachedReader and drop doctrine/cache #1327

Merged
merged 1 commit into from
Jul 1, 2021

Conversation

simPod
Copy link
Contributor

@simPod simPod commented Jun 25, 2021

Q A
Bug fix? no
New feature? no
Doc updated no
BC breaks? yes
Deprecations? no
Tests pass? yes
Fixed tickets #...
License MIT

@simPod simPod force-pushed the psr-cache branch 2 times, most recently from d3f78c4 to 94c5b62 Compare June 25, 2021 08:35
@simPod simPod mentioned this pull request Jun 25, 2021
@@ -525,8 +525,8 @@ public function build(): Serializer

if (null !== $this->cacheDir) {
$this->createDir($this->cacheDir . '/annotations');
$annotationsCache = new FilesystemCache($this->cacheDir . '/annotations');
$annotationReader = new CachedReader($annotationReader, $annotationsCache, $this->debug);
$annotationsCache = new FilesystemAdapter('', 0, $this->cacheDir . '/annotations');
Copy link
Collaborator

@goetas goetas Jun 29, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this would result in a breaking change for people who have not yet installed the symfony/cache component.

I would suggest to check it the Symfony\Component\Cache\Adapter\FilesystemAdapter class exists use that, if not fallback to the current caching classes.

@rasmustnilsson
Copy link

What's the status on this?

@simPod
Copy link
Contributor Author

simPod commented Jul 1, 2021

#1327 (comment)

@rasmustnilsson
Copy link

#1328

@goetas goetas merged commit 79a27d5 into schmittjoh:master Jul 1, 2021
@simPod simPod deleted the psr-cache branch July 29, 2021 07:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants