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

Add missing import to FilesystemAdapter #33

Merged
merged 2 commits into from
May 19, 2021
Merged

Add missing import to FilesystemAdapter #33

merged 2 commits into from
May 19, 2021

Conversation

ericp-mrel
Copy link
Contributor

If you would try to execute the temporaryUrl() method on a local disk you would get an exception stating the RuntimeException class could not be found instead of getting the actual RuntimeException thrown with the proper message explaining the driver doesn't support temporary urls.

Error : Class 'Winter\Storm\Filesystem\RuntimeException' not found

After importing the RuntimeException class you get the correct exception

RuntimeException : This driver does not support creating temporary URLs.

@LukeTowers LukeTowers added this to the v1.1.4 milestone May 19, 2021
@LukeTowers LukeTowers merged commit 0a729ee into wintercms:develop May 19, 2021
@ericp-mrel ericp-mrel deleted the fix/filesystem-runtime-exception branch May 19, 2021 20:58
LukeTowers added a commit that referenced this pull request Aug 20, 2021
* develop:
  Cleanup user impersonation inline docs and ensure the impersonation is working on the current request as well as future requests.
  Fix bug where user impersonation would sometimes fail
  Code quality
  Reorganize helper functions and add new ones.
  Improvements to URL generation (#45)
  Add support for trusted proxies (#42)
  Add issue notice to README
  Add shields to README
  Tweak GitHub Actions
  Retrieve and store headers if Http::toFile() method is used. (#44)
  Improved aliasing and plugin replacement (#38)
  Reduce the calls to PathResolver::resolve for speed (#34)
  Add pagination for queries using havings (#39)
  Add missing import to FilesystemAdapter (#33)
  Improved the unique validation rule test cases (#29)
  Remove old build files
  Support multiple where clauses in Unique validation rules (#28)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants