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

Add an AclCache implementation supporting a PSR-6 cache pool #72

Merged
merged 1 commit into from
Apr 28, 2021
Merged

Add an AclCache implementation supporting a PSR-6 cache pool #72

merged 1 commit into from
Apr 28, 2021

Conversation

mbabker
Copy link
Contributor

@mbabker mbabker commented Apr 24, 2021

With doctrine/cache being sunsetted, the component should provide a cache implementation that doesn't rely on an effectively deprecated package. This PR adds a cache implementation supporting any PSR-6 cache pool which can be used as a replacement.

Closes #76

composer.json Show resolved Hide resolved
Domain/SymfonyAclCache.php Outdated Show resolved Hide resolved
Domain/SymfonyAclCache.php Outdated Show resolved Hide resolved
Domain/SymfonyAclCache.php Outdated Show resolved Hide resolved
Domain/SymfonyAclCache.php Outdated Show resolved Hide resolved
Domain/SymfonyAclCache.php Outdated Show resolved Hide resolved
@mbabker mbabker changed the title Add an AclCache implementation supporting symfony/cache Add an AclCache implementation supporting a PSR-6 cache pool Apr 25, 2021
@mbabker mbabker mentioned this pull request Apr 25, 2021
derrabus added a commit that referenced this pull request Apr 26, 2021
This PR was merged into the 3.x-dev branch.

Discussion
----------

Code style fixes

When locally running the CS fixer against #72 it picked up a couple of other changes along the way, so this PR corrects those so running the tool should result in zero changes on a fresh clone.  I also added its cache file to the gitignore.

Commits
-------

8c3a8e7 Code style fixes
Copy link
Member

@derrabus derrabus left a comment

Choose a reason for hiding this comment

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

Thank you, we're almost there. 🙂

Domain/AclCacheTrait.php Outdated Show resolved Hide resolved
Domain/AclCacheTrait.php Show resolved Hide resolved
Domain/PsrAclCache.php Outdated Show resolved Hide resolved
Domain/PsrAclCache.php Outdated Show resolved Hide resolved
composer.json Outdated Show resolved Hide resolved
@derrabus
Copy link
Member

Thanks for your work on this new feature!

@derrabus derrabus merged commit 13249b7 into symfony:main Apr 28, 2021
@mbabker mbabker deleted the symfony-cache branch April 28, 2021 12:34
wouterj added a commit to symfony/acl-bundle that referenced this pull request Jul 16, 2021
This PR was merged into the 2.x-dev branch.

Discussion
----------

Add service definition for PsrAclCache

Requires symfony/security-acl#72

This adds the service definition for the new `Symfony\Component\Security\Acl\Domain\PsrAclCache` class added to the component for use as a cache service.

Commits
-------

a603061 Add service definition for PsrAclCache
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.

The cache interface should be implemented with the cache contracts
3 participants