-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Cache] Add FilesystemAdapter #17721
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
Conversation
nicolas-grekas
commented
Feb 8, 2016
Q | A |
---|---|
Bug fix? | no |
New feature? | yes |
BC breaks? | no |
Deprecations? | no |
Tests pass? | yes |
Fixed tickets | - |
License | MIT |
Doc PR | - |
f47fbba
to
9bfe953
Compare
9bfe953
to
9708558
Compare
{ | ||
parent::__construct('', $defaultLifetime); | ||
|
||
$dir = rtrim($directory, '/'.DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we use the DIRECTORY_SEPARATOR
constant here (and below) to construct paths?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To "file_exists" a directory, not a file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought always using the forward slash works on Winwows too, doesn't it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It works the same yes. I tweaked the code a bit. ok for you?
👍 |
9708558
to
e5d6db5
Compare
Thank you @nicolas-grekas. |
This PR was merged into the 3.1-dev branch. Discussion ---------- [Cache] Add FilesystemAdapter | Q | A | ------------- | --- | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Commits ------- e5d6db5 [Cache] Add FilesystemAdapter