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

Skip to content

[Cache] Add FilesystemAdapter#17721

Merged
fabpot merged 1 commit into
symfony:masterfrom
nicolas-grekas:cache-filesystem
Feb 18, 2016
Merged

[Cache] Add FilesystemAdapter#17721
fabpot merged 1 commit into
symfony:masterfrom
nicolas-grekas:cache-filesystem

Conversation

@nicolas-grekas
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member

fabpot commented Feb 12, 2016

👍

@fabpot
Copy link
Copy Markdown
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