Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[FrameworkBundle] Add APCu support for the Serializer#17025

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
dunglas wants to merge1 commit intosymfony:masterfromdunglas:apcu

Conversation

@dunglas
Copy link
Member

QA
Bug fix?no
New feature?yes
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed ticketsn/a
LicenseMIT
Doc PRn/a

This PR configures support for the new APCu class from Doctrine Cache (doctrine/cache#115) for the Serializer service.
I'll open a similar PR for the validator service when#16822 will be merged.

I've opened it against master as a new feature, but maybe must it be merged in older versions (2.3?) and considered as a bug fix: APCu for PHP7 doesn't support the APC API anymore. So Symfony projects migrating to PHP7 will not be able to use metadata cache (mandatory in production) without APCu support or adding manually some services.

@layanto
Copy link

Why is this service named serializer.mapping.cache.apcu instead of serializer.mapping.cache.doctrine.apcu like#16822 ?

@ogizanagi
Copy link
Contributor

@layanto : IMO theserializer.mapping.cache.apcu service id is fine.
Thevalidator.mapping.cache.doctrine.apc was named like this because we were unable to name itvalidator.mapping.cache.apc as this last one already exists. Thedoctrine part in it isn't so much important, and short ids are better.

But we won't have any issue to name the new APCu implementationvalidator.mapping.cache.apcu. So don't worry, it'll stay consistent.

@layanto
Copy link

I too do not like overly long name but I think it is confusing that validator.mapping.cache.apc is deprecated in favour of validator.mapping.cache.doctrine.apc and then this adds validator.mapping.cache.apcu which is very similar to the deprecated name.

@dunglas
Copy link
MemberAuthor

@layanto APCu migration is a chance to have coherent and short names again.

@fabpot
Copy link
Member

Closing this one as we should use the new caching component now.

@fabpotfabpot closed thisJan 25, 2016
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

5 participants

@dunglas@layanto@ogizanagi@fabpot@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp