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

Chrysweel picture Chrysweel  路  3Comments

inssein picture inssein  路  3Comments

crbelaus picture crbelaus  路  3Comments

bnd170 picture bnd170  路  3Comments

ping86 picture ping86  路  3Comments