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

pjedrzejewski picture pjedrzejewski  路  33Comments

kgonella picture kgonella  路  22Comments

JakobTolkemit picture JakobTolkemit  路  19Comments

pamil picture pamil  路  27Comments

hanovruslan picture hanovruslan  路  37Comments