Overriding Catalog/Base.php class with our own

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
bill
Posts: 51
Joined: 24 Apr 2017, 17:51

Overriding Catalog/Base.php class with our own

Post by bill » 12 Sep 2017, 22:49

Hi

I am trying to override this file :

ext/ai-client-html/client/src/Client/Html/Catalog/Base.php

with in my own extension , is that possible? how do I do that in the config/shop.php file? I read the documentation and I didn't find how?

Please help

Thanks
Attachments
Screen Shot 2017-09-12 at 3.44.33 PM.png
Screen Shot 2017-09-12 at 3.44.33 PM.png (35.85 KiB) Viewed 2061 times

User avatar
aimeos
Administrator
Posts: 7873
Joined: 01 Jan 1970, 00:00

Re: Overriding Catalog/Base.php class with our own

Post by aimeos » 13 Sep 2017, 08:40

Unfortunately, OOP doesn't allow to overwrite or replace abstract classes other classes extend from. You can only overwrite the methods in the base class in your own class that extends from it.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply