-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
Remove interfaces to improve flexibility for future changes #57
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we should completely remove the interfaces then and not deprecate them.
+1 for removing the interfaces in v1.0. |
I generally agree. I removed all of them except the |
I don't quite understand that point of view. Sure, they might have been used - just like any other interface. That's the purpose of alpha versions (0.* versions), you don't have to guarantee BC so when you feel like you're ready to release the first stable version (1.0.0), you can release a clean library. So I don't see why we would need to distinguish here. Either break BC completely or not at all. |
Fair point. |
I think that the |
Personally, I would clean them up but as you're the one maintaining stuff, I'll leave it up to you. |
64ff676
to
9dcfc20
Compare
9dcfc20
to
8266458
Compare
Description ----------- Roadmap: 1. [x] Get agreement on contao/image#57 and merge it 2. [x] Release `contao/image` 1.0.0-beta4 on Monday evening 3. [ ] Merge this PR before releasing RC2 Commits ------- 84d8d14 Remove contao/image interfaces b29276d Use 1.0.0-beta4 version of contao/image
Description ----------- Roadmap: 1. [x] Get agreement on contao/image#57 and merge it 2. [x] Release `contao/image` 1.0.0-beta4 on Monday evening 3. [ ] Merge this PR before releasing RC2 Commits ------- 84d8d146 Remove contao/image interfaces b29276db Use 1.0.0-beta4 version of contao/image
When updating a 4.8.RC1 installation:
Do I have to update to 4.8.RC2 now to make the installation work again? |
That sounds like the PHP 7.2.20/7.3.7 issue. |
Yes, you have. Contao 4.8.0-RC1 is not compatible with contao/image 1.0.0-beta4. |
You could also add a conflict for |
"conflict" was my first step. Now i have make the update to RC2. |
I think creating an interface for every class in this library was a mistake. Every feature we added to the 1.0 beta version broke BC because interfaces had to be changed.
IMO we should keep the following interfaces:
ImageInterface
DeferredImageInterface
ResizerInterface
DeferredResizerInterface
DeferredImageStorageInterface
PictureInterface
PictureGeneratorInterface
and remove these:
ImageDimensionsInterface
ImportantPartInterface
PictureConfigurationInterface
PictureConfigurationItemInterface
ResizeCalculatorInterface
ResizeConfigurationInterface
ResizeCoordinatesInterface
ResizeOptionsInterface
This would enable us to add more options and configurations in minor releases.