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

[WSSE] - Using a PSR6 cache instead of file cache #6617

Closed
wants to merge 5 commits into from

Conversation

Nyholm
Copy link
Member

@Nyholm Nyholm commented May 26, 2016

I rewrote the WSSE example to use a PSR-6 cache instead. I did this because Symfony got a fancy new CacheComponent now and because using file cache will eventually fill up your inodes. (I just removed 2 million inodes from my server.)

Note: Im not sure about the service name for a cache pool. Is it just cache?

@@ -127,7 +127,7 @@ set an authenticated token in the token storage if successful.

public function __construct(TokenStorageInterface $tokenStorage, AuthenticationManagerInterface $authenticationManager)
{
$this->tokenStorage = $tokenStorage;
$this->tokenStorage = $tokenStorage;
Copy link
Member

Choose a reason for hiding this comment

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

Please revert this change (we do not align assignments in Symfony).

Copy link
Member Author

Choose a reason for hiding this comment

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

Sorry. I looked at the other constructor on this page where you do align it. I'll revert it. Thank you.

@xabbuh
Copy link
Member

xabbuh commented May 29, 2016

I basically like the idea to make use of the new Cache component in this example. Thanks for the heads up @Nyholm! I just left some minor comments about changes we should imo make to better fit with how the PSR-6 cache system is integrated in Symfony.

@xabbuh
Copy link
Member

xabbuh commented May 29, 2016

@weaverryan @wouterj By the way, we need to pay attention to merge this into the 3.1 branch.

@Nyholm
Copy link
Member Author

Nyholm commented May 29, 2016

Thank you for your comments. I'll update the pr tomorrow.

@Nyholm
Copy link
Member Author

Nyholm commented May 31, 2016

I've just pushed some changes to the PR.

@xabbuh
Copy link
Member

xabbuh commented Jun 1, 2016

👍 Great work @Nyholm!

@wouterj
Copy link
Member

wouterj commented Jun 12, 2016

Thanks Tobias, this looks very nice!

wouterj added a commit that referenced this pull request Jun 12, 2016
This PR was submitted for the 3.0 branch but it was merged into the 3.1 branch instead (closes #6617).

Discussion
----------

[WSSE] - Using a PSR6 cache instead of file cache

I rewrote the WSSE example to use a PSR-6 cache instead. I did this because Symfony got a fancy new CacheComponent now and because using file cache will eventually fill up your inodes. (I just removed 2 million inodes from my server.)

Note: Im not sure about the service name for a cache pool. Is it just `cache`?

Commits
-------

1d6e267 [WSSE] - Using a PSR6 cache instead of file cache
@wouterj wouterj closed this Jun 12, 2016
@Nyholm
Copy link
Member Author

Nyholm commented Jun 13, 2016

Thank you for merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants