Skip to content

[Filesystem] introduced new Exception base classes #9150

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 2 commits into from
Sep 27, 2013

Conversation

fabpot
Copy link
Member

@fabpot fabpot commented Sep 27, 2013

The Filesystem class now throws a FileNotFoundException if a file could not be found, rather than an basic IOException. The new exception is still a child of the IOException, this way it doesn' t breack BC.
The IOException now also takes as the first argument an path to the file of interest, which can be used via the getPath() method.

The switch to the FilesystemInterface will allow you to have an implementation accessing S3 or Dropbox, etc. and still inject it into a classes, which are requiring the Filesystem.

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets ~
Doc PR symfony/symfony-docs#2947

@fabpot fabpot merged commit c2e43d0 into symfony:master Sep 27, 2013
@fabpot fabpot deleted the filesystem-exceptions branch December 29, 2013 15:42
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