Sylius: Lot of classes are final

Created on 15 Mar 2018  Â·  2Comments  Â·  Source: Sylius/Sylius

Why lot of classes are final ?

If we need to override them, we have to copy the entire class, add our logic and redefine service.

if there is bug fix in this class, it's very difficult to maintain our code.

Thank

Help Wanted

Most helpful comment

All 2 comments

Hello @arnaudroulee and welcome to the community! Sylius issues should be used to report bugs, propose new features, discuss new functionalities. For everything else, please, use our Slack (preffered) or stackoverflow ;) Regarding you question - I recommend reading something about concept called "composition over inheritance". It should nicely explain why you should depend more on oop structures like decoration than just extending classes. Good luck :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

inssein picture inssein  Â·  3Comments

eb22fbb4 picture eb22fbb4  Â·  3Comments

crbelaus picture crbelaus  Â·  3Comments

hmonglee picture hmonglee  Â·  3Comments

igormukhingmailcom picture igormukhingmailcom  Â·  3Comments