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

Move canonical storage of tmp dir to config()->get(env.tmp) #3137

Merged
merged 3 commits into from
Nov 3, 2017

Conversation

weitzman
Copy link
Member

@weitzman weitzman commented Nov 3, 2017

As a next step, I was thinking of moving the following functions to a static methods on new FileUtils class, in same directory as StringUtils. Feedback welcome on that.

drush_save_data_to_temp_file()
drush_tempnam()
drush_tempdir()
drush_register_file_for_deletion()
_drush_delete_registered_files()

use Webmozart\PathUtil\Path;

class SqlBase
class SqlBase implements ConfigAwareInterface
Copy link
Member

Choose a reason for hiding this comment

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

SqlBase is neither a commandfile, nor is it created from the DI container. It will therefore be necessary to manually inject the config manager in any code that creates an instance of a class derived from SqlBase.

@weitzman weitzman merged commit e065964 into master Nov 3, 2017
@weitzman weitzman deleted the temp-from-config branch November 3, 2017 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants