Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[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

Merged
merged 1 commit into from
Feb 18, 2016
Merged

Conversation

nicolas-grekas
Copy link
Member

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets -
License MIT
Doc PR -

{
parent::__construct('', $defaultLifetime);

$dir = rtrim($directory, '/'.DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR;
Copy link
Member

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?

Copy link
Member Author

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

Copy link
Member

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?

Copy link
Member Author

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?

@fabpot
Copy link
Member

fabpot commented Feb 12, 2016

👍

@fabpot
Copy link
Member

fabpot commented Feb 18, 2016

Thank you @nicolas-grekas.

@fabpot fabpot merged commit e5d6db5 into symfony:master Feb 18, 2016
fabpot added a commit that referenced this pull request Feb 18, 2016
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
@nicolas-grekas nicolas-grekas deleted the cache-filesystem branch March 3, 2016 10:44
@fabpot fabpot mentioned this pull request May 13, 2016
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.

6 participants