Replies: 1 comment 3 replies
-
I just stumble over this, and it's not the only class in the project. A lot of classes that you'd like to simple extend from them and override just tiny bits have private private private everywhere. Suggestion: if you want to block people from overriding, make the Final and state it clear in the documentation you do not support any overriding in the app we build. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello 👋,
Background:
In our specific use case we needed to extend Twill's Glide image service
\A17\Twill\Services\MediaLibrary\Glide
customising and extending its functionality.While we managed to do what we had in mind, we had a question and a suggestion which we thought could make the class easier to extend, and wanted to run them by you:
$server
and$urlBuilder
are made private?initServer
andinitUrlBuilder
)twill/src/Services/MediaLibrary/Glide.php
Lines 55 to 72 in e85ff14
Thanks for your great efforts!
Beta Was this translation helpful? Give feedback.
All reactions