8000 [Finder] Deprecate ExceptionInterface by ogizanagi · Pull Request #20884 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Finder] Deprecate ExceptionInterface #20884

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 1 commit into from
Dec 13, 2016
Merged

[Finder] Deprecate ExceptionInterface #20884

merged 1 commit into from
Dec 13, 2016

Conversation

ogizanagi
Copy link
Contributor
@ogizanagi ogizanagi commented Dec 12, 2016
Q A
Branch? master
Bug fix? no
New feature? no
BC breaks? no
Deprecations? yes
Tests pass? yes
Fixed tickets N/A
License MIT
Doc PR N/A

This interface was missed in #15805, and should have been removed in 3.0.

Ideally, the component should have such an interface, though, as other components does. But the only domain exception in this component is an AccessDeniedException used by the RecursiveDirectoryIterator. So it isn't worth it right now.

I think this interface was almost internal actually, but anyway the \Symfony\Component\Finder\Adapter\AdapterInterface interface does not exist anymore. So the ExceptionInterface::getAdapter() signature cannot be satisfied anyway. I guess anyone relying on this interface in any way should have notice that and removed anything related to Symfony Finder's adapters when upgrading to 3.0.
Should we consider removing it directly in the 3.1 branch instead?

@fabpot
Copy link
Member
fabpot commented Dec 13, 2016

👍 as is. It does not "cost" us anything to deprecate it in 3.3 and remove it in 4.0.

@fabpot
Copy link
Member
fabpot commented Dec 13, 2016

Good catch, thanks @ogizanagi.

@fabpot fabpot merged commit 1b600b0 into symfony:master Dec 13, 2016
fabpot added a commit that referenced this pull request Dec 13, 2016
This PR was merged into the 3.3-dev branch.

Discussion
----------

[Finder] Deprecate ExceptionInterface

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?     
7497
 | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | yes
| Tests pass?   | yes
| Fixed tickets | N/A
| License       | MIT
| Doc PR        | N/A

This interface was missed in #15805, and should have been removed in 3.0.

Ideally, the component should have such an interface, though, as other components does. But the only domain exception in this component is an `AccessDeniedException` used by the `RecursiveDirectoryIterator`. So it isn't worth it right now.

I think this interface was almost internal actually, but anyway the `\Symfony\Component\Finder\Adapter\AdapterInterface` interface does not exist anymore. So the `ExceptionInterface::getAdapter()` signature cannot be satisfied anyway. I guess anyone relying on this interface in any way should have notice that and removed anything related to Symfony Finder's adapters when upgrading to 3.0.
Should we consider removing it directly in the 3.1 branch instead?

Commits
-------

1b600b0 [Finder] Deprecate ExceptionInterface
@ogizanagi ogizanagi deleted the finder/deprecate_adapter_related_exception branch December 13, 2016 08:03
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.

3 participants
0