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

Allow Cache\File to use an absolute path for the temp directory #4

Closed
wants to merge 1 commit into from
Closed

Allow Cache\File to use an absolute path for the temp directory #4

wants to merge 1 commit into from

Conversation

fazy
Copy link

@fazy fazy commented Jan 21, 2015

Existing implementation uses the system-wide temp directory, but it is sometimes useful to inject an absolute path into the constructor, e.g. if the location has been computed elsewhere, or for an application with a self-contained cache directory (most Symfony 2 apps for example).

I needed this for example while working on my current Symfony 2 application - other cache files are in /var/www/myApplication/app/cache/(dev|prod|test), so I didn't really want the TrustPilot one to be in /tmp.

Hope it's ok. :)

Existing implementation uses the system-wide temp directory, but
it is sometimes useful to inject an absolute path into the
constructor, e.g. if the location has been computed elsewhere,
or for an application with a self-contained cache directory
(most Symfony 2 apps for example).
@toin0u
Copy link
Owner

toin0u commented Jan 21, 2015

Hi @fazy
I understand the use case :) I for this but maybe it's wise to rename the variable to $temporaryFolderName, maybe write a test case and the doc ? :)

Travis fails because of this issue https://github.com/trustpilot/developers/issues/27 - we got no new from trustpilot yet :-/

@toin0u
Copy link
Owner

toin0u commented Feb 2, 2015

@fazy any news about this ? :)

@toin0u
Copy link
Owner

toin0u commented Feb 20, 2015

The Trustpilot JSON feed will be discontinued https://github.com/trustpilot/developers/issues/27#issuecomment-75207809

@toin0u toin0u added the wontfix label Feb 20, 2015
@toin0u toin0u closed this Feb 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants